Skip to content

Instantly share code, notes, and snippets.

@loic
Created September 19, 2014 19:01
Show Gist options
  • Save loic/f944ee5d16558da00353 to your computer and use it in GitHub Desktop.
Save loic/f944ee5d16558da00353 to your computer and use it in GitHub Desktop.
diff --git a/django/db/models/query.py b/django/db/models/query.py
index f114759..d5d4243 100644
--- a/django/db/models/query.py
+++ b/django/db/models/query.py
@@ -65,7 +65,7 @@ class QuerySet(object):
def get_initial_queryset(self):
"""
- Hook to set the initial state of a queryset.
+ Hook to provide a default state for custom QuerySet.
"""
return self
get_initial_queryset.queryset_only = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment