#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
Note:
See TracTickets
for help on using tickets.
(In [12309]) Fixed #12706 -- Forgot to pass
usingkwarg in parent class initialization ofGeoQuerySet. Thanks, albsen.