mirror of
https://github.com/django/django.git
synced 2025-07-19 09:09:13 +00:00
[1.0.X] Fixed #9620 -- spatial database tables now have app_label
set correctly.
Backport of r9482 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9483 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ac521026db
commit
0ab5dad0b3
@ -17,6 +17,7 @@ class GeometryColumns(models.Model):
|
|||||||
srid = models.IntegerField(primary_key=True)
|
srid = models.IntegerField(primary_key=True)
|
||||||
# TODO: Add support for `diminfo` column (type MDSYS.SDO_DIM_ARRAY).
|
# TODO: Add support for `diminfo` column (type MDSYS.SDO_DIM_ARRAY).
|
||||||
class Meta:
|
class Meta:
|
||||||
|
app_label = 'gis'
|
||||||
db_table = 'USER_SDO_GEOM_METADATA'
|
db_table = 'USER_SDO_GEOM_METADATA'
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -50,6 +51,7 @@ class SpatialRefSys(models.Model, SpatialRefSysMixin):
|
|||||||
class Meta:
|
class Meta:
|
||||||
# TODO: Figure out way to have this be MDSYS.CS_SRS without
|
# TODO: Figure out way to have this be MDSYS.CS_SRS without
|
||||||
# having django's quoting mess up the SQL.
|
# having django's quoting mess up the SQL.
|
||||||
|
app_label = 'gis'
|
||||||
db_table = 'CS_SRS'
|
db_table = 'CS_SRS'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -23,6 +23,7 @@ class GeometryColumns(models.Model):
|
|||||||
type = models.CharField(max_length=30)
|
type = models.CharField(max_length=30)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
app_label = 'gis'
|
||||||
db_table = 'geometry_columns'
|
db_table = 'geometry_columns'
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -58,6 +59,7 @@ class SpatialRefSys(models.Model, SpatialRefSysMixin):
|
|||||||
proj4text = models.CharField(max_length=2048)
|
proj4text = models.CharField(max_length=2048)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
app_label = 'gis'
|
||||||
db_table = 'spatial_ref_sys'
|
db_table = 'spatial_ref_sys'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user