Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inlineformset_factory and max_num #78

Open
proft opened this issue Oct 6, 2014 · 0 comments
Open

inlineformset_factory and max_num #78

proft opened this issue Oct 6, 2014 · 0 comments

Comments

@proft
Copy link

proft commented Oct 6, 2014

Hello!

I have formset with 3 forms max. User filled all forms and save. Then he decided to delete all forms but he can add new form :( because we have

// We're dealing with an inline formset.
// Rather than remove this form from the DOM, we'll mark it as deleted
// and hide it, then let Django handle the deleting:
del.val('on');
row.hide();
forms = $('.' + options.formCssClass).not(':hidden');

JS delete all forms but doesn't allow to add new (because we may add only 3 max forms).

How to be? :)

radiac added a commit to radiac/django-dynamic-formset that referenced this issue Nov 5, 2014
adongy pushed a commit to adongy/django-dynamic-formset that referenced this issue Feb 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant