You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.
If I have some ChoiceWidget on the formset. So prepares the function self.empty_form[field_name].field.widget.format_value(self.empty_form[field_name].value())
an array [99] for that value. Here are for example 2 Choice fields: food' and unit: {'food': ['99'], 'qty': '6', 'unit': ['2'], 'block': '0', 'extra': '', 'id': '82', 'ORDER': '1', 'DELETE': None}.
That error occurs when the form is sent without having edited anything
The text was updated successfully, but these errors were encountered:
I have the same issue
my workaround was to edit the package:
in the file edit_handlers.py I replaced line
edit_handlers.py obj = model.objects.filter(pk=value).first()
to:
My workaround has been to reverse the orders of the assignments when building the fields list in both 'forms' and 'emptyForm'. It may not be the best fix, but it seems to work fine for now:
Before
field_name: form[field_name].field.widget.format_value(form[field_name].value()) or form[field_name].value()
field_name: self.empty_form[field_name].field.widget.format_value(self.empty_form[field_name].value()) or self.empty_form[field_name].value()
After
field_name: form[field_name].value() or form[field_name].field.widget.format_value(form[field_name].value())
field_name: self.empty_form[field_name].value() or self.empty_form[field_name].field.widget.format_value(self.empty_form[field_name].value())
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If I have some ChoiceWidget on the formset. So prepares the function
self.empty_form[field_name].field.widget.format_value(self.empty_form[field_name].value())
an array [99] for that value. Here are for example 2 Choice fields:
food'
andunit
:{'food': ['99'], 'qty': '6', 'unit': ['2'], 'block': '0', 'extra': '', 'id': '82', 'ORDER': '1', 'DELETE': None}
.That error occurs when the form is sent without having edited anything
The text was updated successfully, but these errors were encountered: