mirror of
https://github.com/django/django.git
synced 2025-06-15 08:29:11 +00:00
[1.8.x] Refs #25274 -- Added missing argument to contrib.gis' inspectdb.
This commit is contained in:
parent
15a18090c1
commit
6914a716cb
@ -22,8 +22,8 @@ class Command(InspectDBCommand):
|
|||||||
self.gis_tables[table_name] = [geo_col]
|
self.gis_tables[table_name] = [geo_col]
|
||||||
return field_type, field_params, field_notes
|
return field_type, field_params, field_notes
|
||||||
|
|
||||||
def get_meta(self, table_name, constraints):
|
def get_meta(self, table_name, constraints, column_to_field_name):
|
||||||
meta_lines = super(Command, self).get_meta(table_name, constraints)
|
meta_lines = super(Command, self).get_meta(table_name, constraints, column_to_field_name)
|
||||||
if table_name in self.gis_tables:
|
if table_name in self.gis_tables:
|
||||||
# If the table is a geographic one, then we need make
|
# If the table is a geographic one, then we need make
|
||||||
# GeoManager the default manager for the model.
|
# GeoManager the default manager for the model.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user