Ticket #16556: srs.patch
File srs.patch, 641 bytes (added by , 13 years ago) |
---|
-
srs.py
old new 69 69 try: 70 70 # Try getting via SRID only, because using all kwargs may 71 71 # differ from exact wkt/proj in database. 72 sr = SpatialRefSys.objects. get(srid=srs.srid)72 sr = SpatialRefSys.objects.using(database).get(srid=srs.srid) 73 73 except SpatialRefSys.DoesNotExist: 74 sr = SpatialRefSys.objects. create(**kwargs)74 sr = SpatialRefSys.objects.using(database).create(**kwargs) 75 75 76 76 # Alias is for backwards-compatibility purposes. 77 77 add_postgis_srs = add_srs_entry