Fixed #9620 -- `GeometryColumns` and `SpatialRefSys` models now play nice with the `AppCache` routines.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
419ed44436
commit
ff9b9e530c
|
@ -16,7 +16,9 @@ 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'
|
||||||
|
managed = False
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def table_name_col(cls):
|
def table_name_col(cls):
|
||||||
|
@ -49,7 +51,7 @@ class SpatialRefSys(models.Model):
|
||||||
class Meta:
|
class Meta:
|
||||||
abstract = True
|
abstract = True
|
||||||
db_table = 'CS_SRS'
|
db_table = 'CS_SRS'
|
||||||
app_label = '_mdsys' # Hack so that syncdb won't try to create "CS_SRS" table.
|
managed = False
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def wkt(self):
|
def wkt(self):
|
||||||
|
|
|
@ -17,7 +17,9 @@ 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'
|
||||||
|
managed = False
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def table_name_col(cls):
|
def table_name_col(cls):
|
||||||
|
@ -54,6 +56,7 @@ class SpatialRefSys(models.Model):
|
||||||
class Meta:
|
class Meta:
|
||||||
abstract = True
|
abstract = True
|
||||||
db_table = 'spatial_ref_sys'
|
db_table = 'spatial_ref_sys'
|
||||||
|
managed = False
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def wkt(self):
|
def wkt(self):
|
||||||
|
|
|
@ -15,7 +15,9 @@ class GeometryColumns(models.Model):
|
||||||
spatial_index_enabled = models.IntegerField()
|
spatial_index_enabled = models.IntegerField()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
app_label = 'gis'
|
||||||
db_table = 'geometry_columns'
|
db_table = 'geometry_columns'
|
||||||
|
managed = False
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def table_name_col(cls):
|
def table_name_col(cls):
|
||||||
|
@ -56,3 +58,4 @@ class SpatialRefSys(models.Model):
|
||||||
class Meta:
|
class Meta:
|
||||||
abstract = True
|
abstract = True
|
||||||
db_table = 'spatial_ref_sys'
|
db_table = 'spatial_ref_sys'
|
||||||
|
managed = False
|
||||||
|
|
Loading…
Reference in New Issue