fix attibute name
This commit is contained in:
parent
763ab02cd0
commit
d54f36b114
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue