#34025: Bug on autocomplete field when two fields from same reference model are
added in same page
-------------------------------------+-------------------------------------
Reporter: Alexandre da Silva | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, autocomplete | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Comment (by David Sanders):
After a bit of playing around with jQuery select2 I believe this is
actually fixable - because select2 allows required selects to be
deselectable.
Before the option is added, we can observe the value of the select is
`null` for selects that haven't an option selected yet. After adding the
option, if the previously observed value was `null` then we can "deselect"
it again.
--
Ticket URL: <https://code.djangoproject.com/ticket/34025#comment:3>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701836019c0e6-b0e5b465-118f-4845-a60d-73901c2803a4-000000%40eu-central-1.amazonses.com.