#29930: View only permissions on stacked inline result in error
------------------------------------+------------------------------------
Reporter: Andre Lesa | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 2.1
Severity: Release blocker | Resolution:
Keywords: inlines, view only | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------------+------------------------------------
Comment (by Tim Graham):
I started on a patch but this solution doesn't work because the
`has_<foo>_permission` calls don't exist at that point where they're
added. I think the checks need to go in `get_inline_formsets()` but given
the method's arguments and fact that we can't easily change the signature
due to backwards compatibility, I couldn't think of a way to know whether
or not should the formset should be omitted. `request.method == 'POST'`
might work. I'll probably continue this next week if no one picks it up.
--
Ticket URL: <https://code.djangoproject.com/ticket/29930#comment:3>
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.16ca3f56ec8aece6fb1019aef47cfe52%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.