[1.7.x] Fixed syntax error in ogrinspect.py management command.

Backport of f384b638e2 from master
This commit is contained in:
Fabio Rueda 2014-06-01 12:32:52 +02:00 committed by Tim Graham
parent a83c56a45a
commit ad408d0985
1 changed files with 1 additions and 1 deletions

View File

@ -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'