mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +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:
parent
f273b371a4
commit
282bccfbc1
@ -183,6 +183,8 @@ class Command(InspectCommand):
|
||||
if comment_notes:
|
||||
field_desc += ' # ' + ' '.join(comment_notes)
|
||||
yield ' %s' % field_desc
|
||||
if table_name in geo_cols:
|
||||
yield ' objects = models.GeoManager()'
|
||||
yield ' class Meta:'
|
||||
yield ' db_table = %r' % table_name
|
||||
yield ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user