1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

gis: Fixed geographic models produced by inspectdb.

git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Justin Bronn 2008-04-01 22:40:32 +00:00
parent f273b371a4
commit 282bccfbc1

View File

@ -183,6 +183,8 @@ class Command(InspectCommand):
if comment_notes: if comment_notes:
field_desc += ' # ' + ' '.join(comment_notes) field_desc += ' # ' + ' '.join(comment_notes)
yield ' %s' % field_desc yield ' %s' % field_desc
if table_name in geo_cols:
yield ' objects = models.GeoManager()'
yield ' class Meta:' yield ' class Meta:'
yield ' db_table = %r' % table_name yield ' db_table = %r' % table_name
yield '' yield ''