Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #9620 -- spatial database tables now have `app_label` set corre…

…ctly.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9482 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 3dbe65e162bc5c71199b7828841593914a3c1575 1 parent eb90cdf
@jbronn jbronn authored
View
2  django/contrib/gis/db/backend/oracle/models.py
@@ -17,6 +17,7 @@ class GeometryColumns(models.Model):
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
@@ -50,6 +51,7 @@ class SpatialRefSys(models.Model, SpatialRefSysMixin):
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
View
2  django/contrib/gis/db/backend/postgis/models.py
@@ -23,6 +23,7 @@ class GeometryColumns(models.Model):
type = models.CharField(max_length=30)
class Meta:
+ app_label = 'gis'
db_table = 'geometry_columns'
@classmethod
@@ -58,6 +59,7 @@ class SpatialRefSys(models.Model, SpatialRefSysMixin):
proj4text = models.CharField(max_length=2048)
class Meta:
+ app_label = 'gis'
db_table = 'spatial_ref_sys'
@property
Please sign in to comment.
Something went wrong with that request. Please try again.