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

Dynamically set max_forms based on model choices #438

Merged
merged 2 commits into from
Jun 23, 2020
Merged

Dynamically set max_forms based on model choices #438

merged 2 commits into from
Jun 23, 2020

Conversation

helrond
Copy link
Member

@helrond helrond commented Jun 23, 2020

Instead of hardcoding max_forms for inlineformsets, uses the length of choices tuple in the relevant model.

Fixes #437

@helrond helrond requested a review from HaSistrunk June 23, 2020 00:09
@helrond helrond merged commit 6f88e98 into v2.1 Jun 23, 2020
@helrond helrond deleted the issue-437 branch June 23, 2020 14:11
@helrond helrond mentioned this pull request Aug 16, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants