From f384b638e20ba33fee948cbf5aa816e2512b0479 Mon Sep 17 00:00:00 2001 From: Fabio Rueda Date: Sun, 1 Jun 2014 12:32:52 +0200 Subject: [PATCH] Fixed syntax error in ogrinspect.py management command. --- django/contrib/gis/management/commands/ogrinspect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/gis/management/commands/ogrinspect.py b/django/contrib/gis/management/commands/ogrinspect.py index 8ea1a9e8e98..8926bc21316 100644 --- a/django/contrib/gis/management/commands/ogrinspect.py +++ b/django/contrib/gis/management/commands/ogrinspect.py @@ -113,5 +113,5 @@ class Command(LabelCommand): output.extend(['', '# Auto-generated `LayerMapping` dictionary for %s model' % model_name, '%s_mapping = {' % model_name.lower()]) output.extend(" '%s' : '%s'," % (rev_mapping[ogr_fld], ogr_fld) for ogr_fld in ds[options['layer_key']].fields) - output.extend(" '%s' : '%s'," % (options['geom_name'], mapping_dict[options['geom_name']]), '}') + output.extend([" '%s' : '%s'," % (options['geom_name'], mapping_dict[options['geom_name']]), '}']) return '\n'.join(output) + '\n'