#32628: Add extra data to autocomplete request
-------------------------------+--------------------------------------
Reporter: Seb G | Owner: nobody
Type: New feature | Status: closed
Component: contrib.admin | Version: 3.2
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by Johannes Maron):
Hi there,
The author of both the autocomplete integration as well as the django-
select2 package here.
So, I understand you point and frustration. However, the second solution
you are proposing actually looks a lot cleaner to me, than to arbitrarily
add a second options object.
Just of consistency I would keep the options we pass to
`djangoAdminSelect2` the same as the once you'd pass to `select2`. It
would make it very confusing for many folk if we break with the `select2`
API.
All that aside, this is not a public API. Therefore, your best bet is to
overwrite the whole file, if you need some special implementation or use
`django-select2` or your special needs.
Please, if you want to change the options object structure, I must kindly
ask you to try your luck with the Select2 project first. We simply don't
have the resources to maintain a custom implementation.
Best,
Joe
--
Ticket URL: <https://code.djangoproject.com/ticket/32628#comment:5>
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/064.bf2b3d81836dfe60b6912a3af43a4b7f%40djangoproject.com.