id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 16537,layermapping spatial ref check not checking against alternate DB,shifflett.shane@…,jbronn,"django/contrib/gis/utils/layermapping.py uses alternate database to save geometries however when checking the SRID against the SPATIAL REF table it does not check against an alternate database if the user specifies one. For a user to experience this error they must have two databases and the default database cannot store shape data. issue occurs in django/contrib/gis/utils/layermapping.py line 432 OLD CODE (SRID lookup will fail if user has an alternate database storing shape data): target_srs = SpatialRefSys.objects.get(srid=self.geo_field.srid).srs PROPOSED FIX (SRID lookup succeeds and functions similar to SAVE function): target_srs = SpatialRefSys.objects.using(self.using).get(srid=self.geo_field.srid).srs",Bug,closed,GIS,1.3,Release blocker,fixed,,,Accepted,1,0,0,0,0,0