Opened 14 years ago

Closed 14 years ago

Last modified 13 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

Description

Hi,
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/query.py b/django/contrib/gis/db/models/query.py
index 8f25c13..63100ec 100644
--- a/django/contrib/gis/db/models/query.py
+++ b/django/contrib/gis/db/models/query.py
@@ -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

cheers,

ASD

Change History (2)

comment:1 by jbronn, 14 years ago

Resolution: fixed
Status: newclosed

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

comment:2 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

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