Pickling queryset.query doesn't work for gis models on Oracle
If I pickle queryset.query which is GIS model I get following results (using Oracle as database):
qs = MyModel.objects.filter(id=12345)
before pickling:
>>> qs.query
<django.contrib.gis.db.models.sql.query.GeoQuery object at 0x0199FB90>
>>> qry_str = pickle.dumps(qs.query)
>>> qry = pickle.loads(qry_str)
>>> qry
<django.db.backends.oracle.query.OracleQuery object at 0x019C3F70>
Somehow query object has changed. It works as expected on non GIS models.
Description: |
modified (diff)
|
Keywords: |
oracle gis added
|
Summary: |
Pickling queryset.query doesn't work for gis models → Pickling queryset.query doesn't work for gis models on Oracle
|
Needs tests: |
set
|
Owner: |
changed from nobody to jbronn
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Initial stab at this patch.