Commit bd57ecb67897a1ee09a93e7c7d79473f870f4a23

Authored by janek37
1 parent b8fc981f

poprawka do importu szablonow

dictionary/management/commands/import_templates.py
... ... @@ -31,7 +31,7 @@ def import_templates(data):
31 31 tt.pattern_types.add(PATTERN_TYPES[tuple(pt_data)])
32 32 for attr_name in tt_data['attributes']:
33 33 tt.attributes.add(ATTRS[attr_name])
34   - for av_data in tt_data['attr_vals']:
  34 + for av_data in tt_data['attribute_values']:
35 35 tt.attribute_values.add(ATTR_VALS[tuple(av_data)])
36 36 for attr_name in tt_data['cell_attributes']:
37 37 tt.cell_attributes.add(ATTRS[attr_name])
... ...