This repository has been archived by the owner on Oct 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Field 'id' expected a number but got ['99']. #79
Labels
Comments
I have the same issue
I had to add the 2 options because of compatibility with my old objects |
I have forked it and changed 2 lines of code. |
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
After
|
Sign up for free
to 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: