#12654 closed (fixed)
Admin readonly_fields not working with ForeignKey fields
Reported by: | Karataev Pavel | Owned by: | Karataev Pavel |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
If you add any ForeignKey field to readonly_fields, it will displayed in change_view as number (primary key).
Attachments (2)
Change History (6)
by , 15 years ago
comment:1 by , 15 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
yes, i will write it in regressiontests/admin_util/tests.py
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
The fix looks reasonable, can you work up a test case for this?