Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#12706 closed (fixed)

GeoQuerySet.__init__ doesn't make use of "using" kwarg

Reported by: asd Owned by: nobody
Component: GIS Version: 1.2-alpha
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


just a really small thing:

The init method doesn't send using to the parent QuerySet.init method.

Here is the patch

diff --git a/django/contrib/gis/db/models/ b/django/contrib/gis/db/models/
index 8f25c13..63100ec 100644
--- a/django/contrib/gis/db/models/
+++ b/django/contrib/gis/db/models/
@@ -12,7 +12,7 @@ class GeoQuerySet(QuerySet):
     ### Methods overloaded from QuerySet ###
     def __init__(self, model=None, query=None, using=None):
-        super(GeoQuerySet, self).__init__(model=model, query=query)
+        super(GeoQuerySet, self).__init__(model=model, query=query, using=using)
         self.query = query or GeoQuery(self.model)
     def values(self, *fields):

sorry, it's just to small for its own file. :D



Change History (2)

comment:1 Changed 9 years ago by jbronn

Resolution: fixed
Status: newclosed

(In [12309]) Fixed #12706 -- Forgot to pass using kwarg in parent class initialization of GeoQuerySet. Thanks, albsen.

comment:2 Changed 7 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top