#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 Jimmy Merrild Krag):
Replying to [comment:14 Jamie Bliss]:
> 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`.
I agree completely. Actually my current work is hindered by it.
--
Ticket URL: <https://code.djangoproject.com/ticket/15602#comment:15>
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.2a5df986fa56d8773ba07ea3b02aa8df%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.