Opened 11 years ago
Closed 11 years ago
#22664 closed New feature (needsinfo)
Allow the admin to optionally reference instances by slug instead of pk
Reported by: | nickname123 | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
It would be nice if the admin could be instructed to reference instances by slug instead of pk for anything presented to the user. This would be particularly useful on models that use a public facing random identifier instead of an autogenerated sequential AutoField.
Note:
See TracTickets
for help on using tickets.
Without seeing a patch it's difficult to evaluate the idea, but I tend to think this will add a lot of complexity for minimal benefit (since the admin is intended for use by "staff" users only). Feel free to reopen if you have a concrete proposal and perhaps some code, but I'm wary of the idea.