We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2f055a9 + f582eac commit c500175Copy full SHA for c500175
1 file changed
eav/forms.py
@@ -94,7 +94,7 @@ def _build_dynamic_fields(self):
94
self.fields[attribute.slug] = MappedField(**defaults)
95
96
# fill initial data (if attribute was already defined)
97
- if value and not datatype == attribute.TYPE_ENUM: #enum done above
+ if not value is None and not datatype == attribute.TYPE_ENUM: #enum done above
98
self.initial[attribute.slug] = value
99
100
def save(self, commit=True):
0 commit comments