Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…et 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
  • Loading branch information...
commit 0ab5dad0b3e3b4097d72683e0091ff56d09429e4 1 parent ac52102
Justin Bronn authored November 17, 2008
2  django/contrib/gis/db/backend/oracle/models.py
@@ -17,6 +17,7 @@ class GeometryColumns(models.Model):
17 17
     srid = models.IntegerField(primary_key=True)
18 18
     # TODO: Add support for `diminfo` column (type MDSYS.SDO_DIM_ARRAY).
19 19
     class Meta:
  20
+        app_label = 'gis'
20 21
         db_table = 'USER_SDO_GEOM_METADATA'
21 22
 
22 23
     @classmethod
@@ -50,6 +51,7 @@ class SpatialRefSys(models.Model, SpatialRefSysMixin):
50 51
     class Meta:
51 52
         # TODO: Figure out way to have this be MDSYS.CS_SRS without
52 53
         #  having django's quoting mess up the SQL.
  54
+        app_label = 'gis'
53 55
         db_table = 'CS_SRS'
54 56
 
55 57
     @property
2  django/contrib/gis/db/backend/postgis/models.py
@@ -23,6 +23,7 @@ class GeometryColumns(models.Model):
23 23
     type = models.CharField(max_length=30)
24 24
 
25 25
     class Meta:
  26
+        app_label = 'gis'
26 27
         db_table = 'geometry_columns'
27 28
 
28 29
     @classmethod
@@ -58,6 +59,7 @@ class SpatialRefSys(models.Model, SpatialRefSysMixin):
58 59
     proj4text = models.CharField(max_length=2048)
59 60
 
60 61
     class Meta:
  62
+        app_label = 'gis'
61 63
         db_table = 'spatial_ref_sys'
62 64
 
63 65
     @property

0 notes on commit 0ab5dad

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