Changes between Initial Version and Version 2 of Ticket #16556


Ignore:
Timestamp:
Aug 2, 2011, 1:20:02 PM (13 years ago)
Author:
jbronn
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16556

    • Property Milestone1.4
    • Property Owner changed from chander.ganesan@… to jbronn
    • Property Triage Stage UnreviewedAccepted
    • Property Status newassigned
  • Ticket #16556 – Description

    initial v2  
    1 django.contrib.gis.utils.srs fails to preserve database when creating SpatialRefSys querysets
     1`django.contrib.gis.utils.srs` fails to preserve database when creating `SpatialRefSys` querysets
    22
    33Currently, the code (line ~70 or so) reads like this:
     4{{{
     5#!python
    46
    57    # Creating the spatial_ref_sys model.
     
    1012    except SpatialRefSys.DoesNotExist:
    1113        sr = SpatialRefSys.objects.create(**kwargs)
     14}}}
    1215
    1316It should read like this:
    14 
     17{{{
     18#!python
    1519
    1620    # Creating the spatial_ref_sys model.
     
    2125    except SpatialRefSys.DoesNotExist:
    2226        sr = SpatialRefSys.objects.using(database).create(**kwargs)
    23 
     27}}}
    2428
    2529Otherwise support for multiple backends is sort of broken.
Back to Top