#2259: Primary keys should be readonly by default in admin -------------------------------------+------------------------------------- Reporter: ed@… | Owner: Pathangi | Jatinshravan Type: Bug | Status: new Component: contrib.admin | Version: master 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 michjnich): Doesn't appear to be the same issue as it was to start with, if it still exists at all. I replicated the original test in comment #1 using the Group table, and it works fine now: {{{ >>> from django.contrib.auth.models import Group >>> Group.objects.all() <QuerySet []> >>> g = Group(name="test") >>> g.save() >>> Group.objects.all() <QuerySet [<Group: test>]> >>> g = Group.objects.get(name="test") >>> g.name="testx" >>> g.save() >>> Group.objects.all() <QuerySet [<Group: testx>]> }}} I then changed this back to "test" via the admin interface, which also resulted in a single record called "test" without any issues. As far as I can tell, the original issue no longer exists and this should be closed. -- Ticket URL: <https://code.djangoproject.com/ticket/2259#comment:33> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/072.ff34132a979209b542ff6148b99c1658%40djangoproject.com.