Ticket #9620: gis_app_labels.diff

File gis_app_labels.diff, 1.3 KB (added by jbronn, 16 years ago)

Adds app_label to spatial backend models.

  • django/contrib/gis/db/backend/oracle/models.py

     
    1717    srid = models.IntegerField(primary_key=True)
    1818    # TODO: Add support for `diminfo` column (type MDSYS.SDO_DIM_ARRAY).
    1919    class Meta:
     20        app_label = 'gis'
    2021        db_table = 'USER_SDO_GEOM_METADATA'
    2122
    2223    @classmethod
     
    5051    class Meta:
    5152        # TODO: Figure out way to have this be MDSYS.CS_SRS without
    5253        #  having django's quoting mess up the SQL.
     54        app_label = 'gis'
    5355        db_table = 'CS_SRS'
    5456
    5557    @property
  • django/contrib/gis/db/backend/postgis/models.py

     
    2323    type = models.CharField(max_length=30)
    2424
    2525    class Meta:
     26        app_label = 'gis'
    2627        db_table = 'geometry_columns'
    2728
    2829    @classmethod
     
    5859    proj4text = models.CharField(max_length=2048)
    5960
    6061    class Meta:
     62        app_label = 'gis'
    6163        db_table = 'spatial_ref_sys'
    6264
    6365    @property
Back to Top