#12654 closed (fixed)
Admin readonly_fields not working with ForeignKey fields
Reported by: | Karataev Pavel | Owned by: | Karataev Pavel |
---|---|---|---|
Component: | contrib.admin | Version: | master |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | UI/UX: |
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)
Changed 8 years ago by
comment:1 Changed 8 years ago by
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 Changed 8 years ago by
Owner: | changed from nobody to Karataev Pavel |
---|---|
Status: | new → assigned |
yes, i will write it in regressiontests/admin_util/tests.py
comment:3 Changed 8 years ago by
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?