fix attibute name

This commit is contained in:
Frédéric Péters 2012-05-04 13:44:01 +02:00
parent 763ab02cd0
commit d54f36b114
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ def get_dict_with_varnames(fields, data):
else:
value = field.label
# add it as f$n$
if data is not None or not field.variable:
if data is not None or not field.varname:
new_data['f%s' % field.id] = value
# also add it as 'field_' + normalized(field label)