#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 siddhartha-star-dev):
Replying to [comment:42 Mariusz Felisiak]:
> Have you seen [https://code.djangoproject.com/ticket/2259#comment:27
Anssi's proposition]? We don't want to allow for editing primary keys in
admin. They should not be allowed in the `ModelAdmin.list_editable` and
become read-only when editing.
I have seen [https://code.djangoproject.com/ticket/2259#comment:27 Anssi's
proposition] , and I only put out those ways in reference to the 3 point
in the proposition (That editable should be an opt-in), if we are ok in
always having them non-editable, we should be good, I will start working
on that for now, we can visit the 3 point later....
--
Ticket URL: <https://code.djangoproject.com/ticket/2259#comment:43>
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.c29588d17ff48f73579b537bcb354a7e%40djangoproject.com.