Commits

Anonymous committed 066528e

[1.0.X] Fixed #9620 -- spatial database tables now have `app_label` set correctly.

Backport of r9482 from trunk.

  • Participants
  • Parent commits c1c18bf
  • Branches releases/1.0.X

Comments (0)

Files changed (2)

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

     srid = models.IntegerField(primary_key=True)
     # TODO: Add support for `diminfo` column (type MDSYS.SDO_DIM_ARRAY).
     class Meta:
+        app_label = 'gis'
         db_table = 'USER_SDO_GEOM_METADATA'
 
     @classmethod
     class Meta:
         # TODO: Figure out way to have this be MDSYS.CS_SRS without
         #  having django's quoting mess up the SQL.
+        app_label = 'gis'
         db_table = 'CS_SRS'
 
     @property

django/contrib/gis/db/backend/postgis/models.py

     type = models.CharField(max_length=30)
 
     class Meta:
+        app_label = 'gis'
         db_table = 'geometry_columns'
 
     @classmethod
     proj4text = models.CharField(max_length=2048)
 
     class Meta:
+        app_label = 'gis'
         db_table = 'spatial_ref_sys'
 
     @property