Commit f87e552d authored by Luke Plant's avatar Luke Plant
Browse files

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/
parent e5cfa394
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1122,6 +1122,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