[Django] #22664: Allow the admin to optionally reference instances by slug instead of pk

5 views
Skip to first unread message

Django

unread,
May 20, 2014, 10:20:34 AM5/20/14
to django-...@googlegroups.com
#22664: Allow the admin to optionally reference instances by slug instead of pk
-------------------------------+--------------------
Reporter: nickname123 | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/22664>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 25, 2014, 7:55:47 PM5/25/14
to django-...@googlegroups.com
#22664: Allow the admin to optionally reference instances by slug instead of pk
-------------------------------+--------------------------------------
Reporter: nickname123 | Owner: nobody
Type: New feature | Status: closed
Component: contrib.admin | Version: master
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by timo):

* status: new => closed
* needs_better_patch: => 0
* resolution: => needsinfo
* needs_tests: => 0
* needs_docs: => 0


Comment:

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.

--
Ticket URL: <https://code.djangoproject.com/ticket/22664#comment:1>

Reply all
Reply to author
Forward
0 new messages