#30386: Admin foreign key widgets don't quote keys.
--------------------------------+------------------------------------
Reporter: Joshua Goodwin | Owner: zeynel
Type: Bug | Status: assigned
Component: contrib.admin | Version: master
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
--------------------------------+------------------------------------
Changes (by zeynel):
* owner: nobody => zeynel
* status: new => assigned
Comment:
I believe there are two main parts to handle to fix this bug.
- Quoting `obj.pk` value on
https://github.com/django/django/blob/89a2216486fa8a0513cbb1d49d2d587d4116c60b/django/contrib/admin/widgets.py#L191
- Quoting object pk(or sending quoted values in context) on client side
when user changes the selection on RelatedFieldWidget
https://github.com/django/django/blob/89a2216486fa8a0513cbb1d49d2d587d4116c60b/django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js#L69
--
Ticket URL: <https://code.djangoproject.com/ticket/30386#comment:2>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.a2108ce7eb53fb963231334fcf3e16b3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.