Skip to content

Commit

Permalink
Fixes #1652
Browse files Browse the repository at this point in the history
  • Loading branch information
wadewilliams committed Feb 6, 2024
1 parent 0e57475 commit 26f8873
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions django_extensions/management/commands/sqldiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,9 @@ def get_field_db_type(self, description, field=None, table_name=None):
kwargs['geography'] = True

if reverse_type == 'GeometryField':
geo_col = description[0]
# Getting a more specific field type and any additional parameters
# from the `get_geometry_type` routine for the spatial backend.
reverse_type, geo_params = self.introspection.get_geometry_type(table_name, geo_col)
reverse_type, geo_params = self.introspection.get_geometry_type(table_name, description)
if geo_params:
kwargs.update(geo_params)
reverse_type = 'django.contrib.gis.db.models.fields.%s' % reverse_type
Expand Down

0 comments on commit 26f8873

Please sign in to comment.