#26142: Provide a way for model formsets to disallow new object creation
-----------------------------+------------------------------------
Reporter: timgraham | Owner: Mortal
Type: New feature | Status: assigned
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------
Comment (by dsanders11):
Doesn't `max_num` already allow this? Testing on master, if you have
`max_num` set to 0 and `validate_max` to `True`, then the formset is
effectively edit-only for existing objects. From the
[https://docs.djangoproject.com/en/1.9/topics/forms/modelforms/#limiting-
the-number-of-editable-objects documentation]:
> `max_num` does not prevent existing objects from being displayed
Is there a corner case of functionality that's not covered by these two
settings?
--
Ticket URL: <https://code.djangoproject.com/ticket/26142#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.8ef1a140b1cb05402c91a28efcf79c0b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.