[1.7.x] Fixed syntax error in ogrinspect.py management command.
Backport of f384b638e2
from master
This commit is contained in:
parent
a83c56a45a
commit
ad408d0985
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue