Changes between Initial Version and Version 2 of Ticket #16556


Ignore:
Timestamp:
08/02/2011 01:20:02 PM (4 years ago)
Author:
jbronn
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16556

    • Property Status changed from new to assigned
    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Milestone changed from to 1.4
    • Property Owner changed from chander.ganesan@… to jbronn
    • Property Needs documentation unset
    • Property Triage Stage changed from Unreviewed to Accepted
  • 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