#2259: Primary keys should be readonly by default in admin
------------------------------------+-------------------------------
               Reporter:  ed@…      |          Owner:  nobody
                   Type:  Bug       |         Status:  reopened
              Milestone:            |      Component:  contrib.admin
                Version:            |       Severity:  Normal
             Resolution:            |       Keywords:
           Triage Stage:  Accepted  |      Has patch:  1
    Needs documentation:  1         |    Needs tests:  0
Patch needs improvement:  1         |  Easy pickings:  0
                  UI/UX:  0         |
------------------------------------+-------------------------------
Changes (by carljm):

 * stage:  Design decision needed => Accepted


Comment:

 In discussion with Alex at the sprint, the need for cascading updates of
 foreign keys pushes this beyond the bounds of what's reasonable for Django
 to try to support. Primary keys should not change.

 We should, however, update the admin so that primary key fields are
 included in readonly_fields by default, to avoid the confusing and
 unexpected creation of new records.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/2259#comment:23>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to