Skip to content

Commit

Permalink
Fix for issue jazzband#648: Ensure choices are valid (value, label) t…
Browse files Browse the repository at this point in the history
…uples to avoid 'not enough values to unpack' error
  • Loading branch information
wolfmetr committed Dec 23, 2024
1 parent d0b531f commit 30e8873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eav/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _build_dynamic_fields(self):

if datatype == attribute.TYPE_ENUM:
values = attribute.get_choices().values_list("id", "value")
choices = ["", "-----", *list(values)]
choices = [("", ""), ("-----", "-----"), *list(values)]
defaults.update({"choices": choices})

if value:
Expand Down

0 comments on commit 30e8873

Please sign in to comment.