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
What steps will reproduce the problem? 1.Create a new instance using a form with an inline formset and this jquery plugin
2.Save the form after adding several items to the formset. Have the extra flag set to at least one
3.Edit the form and click the remove link next to a formset item that was already created in the previous step
4. Save the form
What is the expected output?
The form should save and the item that you removed should be removed
What do you see instead?
If the model class field is set to required for the formset, the formset will fail validation. If the field is set to null=True and blank=True the save will insert an empty record What version of the product are you using? On what operating system? 1.2 of the plugin and 1.2.3 of DJango Please provide any additional information below. If you create a new form and have extra set to 1 or any other number, the formset is not creating a blank item or failing validation for all of the empty rows. It seems to only happen when you edit an existing form. The only way to pass validation is to remove all the empty rows.
I think I may of fixed this issue. I grab the latest copy of your java script. I also re-wrote my form template and removed a call back function I was doing when a new row was added. Since then I have not been able to re-produce the issue.
That seems benign...don't see how that'd cause anything to stop working. I guess the wrong version number in the code is the real bug here :) I'll go ahead and close this then. Thanks!
From qgriff...@gmail.com on February 08, 2011 18:17:32
What steps will reproduce the problem? 1.Create a new instance using a form with an inline formset and this jquery plugin
2.Save the form after adding several items to the formset. Have the extra flag set to at least one
3.Edit the form and click the remove link next to a formset item that was already created in the previous step
4. Save the form
What is the expected output?
The form should save and the item that you removed should be removed
What do you see instead?
If the model class field is set to required for the formset, the formset will fail validation. If the field is set to null=True and blank=True the save will insert an empty record What version of the product are you using? On what operating system? 1.2 of the plugin and 1.2.3 of DJango Please provide any additional information below. If you create a new form and have extra set to 1 or any other number, the formset is not creating a blank item or failing validation for all of the empty rows. It seems to only happen when you edit an existing form. The only way to pass validation is to remove all the empty rows.
Original issue: http://code.google.com/p/django-dynamic-formset/issues/detail?id=24
The text was updated successfully, but these errors were encountered: