#2259: Primary keys should be readonly by default in admin
-------------------------------------+-------------------------------------
     Reporter:  ed@…                 |                    Owner:
                                     |  siddhartha-star-dev
         Type:  Bug                  |                   Status:  assigned
    Component:  contrib.admin        |                  Version:  dev
     Severity:  Normal               |               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 Mariusz Felisiak):

 > `obj.save()`
 > `exit()`
 > This creates a new object rather than updating the old one, should this
 not be fixed right here?

 This is a [https://docs.djangoproject.com/en/stable/ref/models/instances
 /#how-django-knows-to-update-vs-insert documented] and expected behavior,
 which shouldn't be changed.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/2259#comment:39>
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/072.39e1d2fea8a7399e8ef7dee5159c4f88%40djangoproject.com.

Reply via email to