Commit 5e1fa140 authored by Luke Plant's avatar Luke Plant
Browse files

[1.8.x] Corrected example code for get_query_set upgrade in 1.6 release notes

The conditional setting of `get_query_set` is required for correct behaviour
if running Django 1.8. The full gory details are here:

http://lukeplant.me.uk/blog/posts/handling-django%27s-get_query_set-rename-is-hard/

Backport of f87e552d from master
parent b252e0f3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1124,6 +1124,7 @@ a ``get_queryset_compat`` method as below and use it internally to your manager:
        def get_queryset(self):
            return YourCustomQuerySet() # for example

        if django.VERSION < (1, 6):
            get_query_set = get_queryset

        def active(self): # for example