#15602: Using get_readonly_fields and StackedInline/TabularInline admin objects
doesn't allow creating new objects, immutible existing objects
---------------------------------+------------------------------------
Reporter: bradwhittington | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | 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 astronouth7303):
I can confirm this for 1.10.1.
My two cents, I consider the current behavior (passing the top-level
object as the `obj` parameter) to be The Wrong Thing. An Inline Admin
should get its own model.
This bug significantly hinders the ability of `get_readonly_fields()` to
be useful in inline admins because you can only mark a field as read-only
for every instance of the admin. Which I could just do with
`readonly_fields`.
--
Ticket URL: <https://code.djangoproject.com/ticket/15602#comment:14>
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/073.3039dee8237eb3e4cc749dc7287214e5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.