#29969: Admin inline with view permission is shown when save_as validation fails
---------------------------------+------------------------------------
     Reporter:  Matija Kolarić   |                    Owner:  (none)
         Type:  Bug              |                   Status:  new
    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
---------------------------------+------------------------------------
Changes (by Carlton Gibson):

 * owner:  Carlton Gibson => (none)
 * status:  assigned => new


Comment:

 I'm going to de-assign myself here: I'll keep working on it but I'm not at
 all sure I have a take on how best to handle it, so input welcome!

 The difficulty is that:

 1. For read-only fields we don't submit the post data needed to re-
 populate the form (which for normal fields we do) and...
 2. For `_saveasnew`,
 
[https://github.com/django/django/blob/f091ea35150d95fc6732bbf0c27b971dd445509a/django/contrib/admin/options.py#L1532-L1533
 we don't have the parent object available] to fetch them again.

 As such I don't see an easy/obvious fix.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29969#comment:7>
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.b6bdcf2ca3f43c4bf2f900cec5856e2c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to