#15611: Readonly fields not hidden during create
-------------------------------+------------------------------------
     Reporter:  coderanger     |                    Owner:  (none)
         Type:  Bug            |                   Status:  new
    Component:  contrib.admin  |                  Version:  1.2
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  1
Easy pickings:  0              |                    UI/UX:  1
-------------------------------+------------------------------------

Comment (by Tim McCurrach):

 I think this can be closed now. We have `get_readonly_fields`, and
 `get_fields` both of which accept an `obj` argument which will be `None`
 in the case of an `add_view`. This allows you to completely customise what
 fields you want to be readonly (or even present) for both `add_view` and
 `change_view`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/15611#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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.c4f23815bad51eb630b73a953e2490bf%40djangoproject.com.

Reply via email to