Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit ff9b9e530c0cd4c62e279da0aed11ed426da59dc 1 parent 419ed44
Justin Bronn authored April 16, 2009
4  django/contrib/gis/db/backend/oracle/models.py
@@ -16,7 +16,9 @@ class GeometryColumns(models.Model):
16 16
     srid = models.IntegerField(primary_key=True)
17 17
     # TODO: Add support for `diminfo` column (type MDSYS.SDO_DIM_ARRAY).
18 18
     class Meta:
  19
+        app_label = 'gis'
19 20
         db_table = 'USER_SDO_GEOM_METADATA'
  21
+        managed = False
20 22
 
21 23
     @classmethod
22 24
     def table_name_col(cls):
@@ -49,7 +51,7 @@ class SpatialRefSys(models.Model):
49 51
     class Meta:
50 52
         abstract = True
51 53
         db_table = 'CS_SRS'
52  
-        app_label = '_mdsys' # Hack so that syncdb won't try to create "CS_SRS" table.
  54
+        managed = False
53 55
 
54 56
     @property
55 57
     def wkt(self):
3  django/contrib/gis/db/backend/postgis/models.py
@@ -17,7 +17,9 @@ class GeometryColumns(models.Model):
17 17
     type = models.CharField(max_length=30)
18 18
 
19 19
     class Meta:
  20
+        app_label = 'gis'
20 21
         db_table = 'geometry_columns'
  22
+        managed = False
21 23
 
22 24
     @classmethod
23 25
     def table_name_col(cls):
@@ -54,6 +56,7 @@ class SpatialRefSys(models.Model):
54 56
     class Meta:
55 57
         abstract = True
56 58
         db_table = 'spatial_ref_sys'
  59
+        managed = False
57 60
 
58 61
     @property
59 62
     def wkt(self):
3  django/contrib/gis/db/backend/spatialite/models.py
@@ -15,7 +15,9 @@ class GeometryColumns(models.Model):
15 15
     spatial_index_enabled = models.IntegerField()
16 16
 
17 17
     class Meta:
  18
+        app_label = 'gis'
18 19
         db_table = 'geometry_columns'
  20
+        managed = False
19 21
 
20 22
     @classmethod
21 23
     def table_name_col(cls):
@@ -56,3 +58,4 @@ def wkt(self):
56 58
     class Meta:
57 59
         abstract = True
58 60
         db_table = 'spatial_ref_sys'
  61
+        managed = False

0 notes on commit ff9b9e5

Please sign in to comment.
Something went wrong with that request. Please try again.