#29969: Admin inline with view permission is shown when save_as validation fails
-------------------------------------+-------------------------------------
Reporter: Matija Kolarić | Owner: Carlton
| Gibson
Type: Bug | Status: assigned
Component: contrib.admin | Version: 2.1
Severity: Release blocker | 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 Carlton Gibson):
Replying to [comment:5 Carlton Gibson]:
> Fix for #29930 ([https://github.com/django/django/pull/10678 PR]) would
"solve" this, in that the inline formset is removed when re-presenting the
parent form with the validation error.
>
> Question is whether that's good enough for this corner case? Or do we
want to represent the read-only inline? (2nd option is better; haven't yet
got to seeing exactly what would be involved.)
This is outdated. The PR there now maintains the inline when re-presenting
the form.
The issue here seems to be two part:
1. The form is re-presented bound to empty post data, submitted (or rather
not submitted) from the dummy form, rather than the initial instance data.
(First question is how to adjust that?)
2. When using save-as the form is presented as a form, rather than the
read-only alternative. (Not sure yet why that is.)
--
Ticket URL: <https://code.djangoproject.com/ticket/29969#comment:6>
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/071.7875d97ca23c663c5e047e0d2364e42f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.