Author: jbronn
Date: 2008-11-17 12:22:39 -0600 (Mon, 17 Nov 2008)
New Revision: 9483
Modified:
django/branches/releases/1.0.X/django/contrib/gis/db/backend/oracle/models.py
django/branches/releases/1.0.X/django/contrib/gis/db/backend/postgis/models.py
Log:
[1.0.X] Fixed #9620 -- spatial database tables now have `app_label` set
correctly.
Backport of r9482 from trunk.
Modified:
django/branches/releases/1.0.X/django/contrib/gis/db/backend/oracle/models.py
===================================================================
---
django/branches/releases/1.0.X/django/contrib/gis/db/backend/oracle/models.py
2008-11-17 18:18:54 UTC (rev 9482)
+++
django/branches/releases/1.0.X/django/contrib/gis/db/backend/oracle/models.py
2008-11-17 18:22:39 UTC (rev 9483)
@@ -17,6 +17,7 @@
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 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
Modified:
django/branches/releases/1.0.X/django/contrib/gis/db/backend/postgis/models.py
===================================================================
---
django/branches/releases/1.0.X/django/contrib/gis/db/backend/postgis/models.py
2008-11-17 18:18:54 UTC (rev 9482)
+++
django/branches/releases/1.0.X/django/contrib/gis/db/backend/postgis/models.py
2008-11-17 18:22:39 UTC (rev 9483)
@@ -23,6 +23,7 @@
type = models.CharField(max_length=30)
class Meta:
+ app_label = 'gis'
db_table = 'geometry_columns'
@classmethod
@@ -58,6 +59,7 @@
proj4text = models.CharField(max_length=2048)
class Meta:
+ app_label = 'gis'
db_table = 'spatial_ref_sys'
@property
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---