mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-04-03 15:10:38 +00:00
Fix multi_enum field save
This commit is contained in:
parent
cbc59280b8
commit
fcaccb19a3
1 changed files with 1 additions and 1 deletions
|
|
@ -576,7 +576,7 @@ class Entity(object):
|
|||
attribute_value = EnumValue.objects.get(value=attribute_value)
|
||||
if attribute.datatype == Attribute.TYPE_ENUM_MULTI:
|
||||
attribute_value = [
|
||||
EnumValue.objects.get(value=v) if not isinstance(attribute_value, EnumValue) else v
|
||||
EnumValue.objects.get(value=v) if not isinstance(v, EnumValue) else v
|
||||
for v in attribute_value
|
||||
]
|
||||
attribute.save_value(self.instance, attribute_value)
|
||||
|
|
|
|||
Loading…
Reference in a new issue