#32146: Make AutocompleteSelect and AutocompleteSelectMultiple easier to reuse
-------------------------------------+-------------------------------------
Reporter: Andy | Owner: nobody
Babic |
Type: | Status: new
Cleanup/optimization |
Component: | Version: 3.1
contrib.admin |
Severity: Normal | Keywords: autocomplete
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The 'rel' argument currently required for Autocomplete widget
instantiation is a little confusing if you don't know a huge amount about
relationship field internals, and is also unnecessary, it would seem. It
looks as though the only reason for passing this, is that the model class
can be extracted from it. However, if used with `ModelChoiceField` and
`ModelMultipleChoiceField` (which is, currently, always the case), that is
available from the `self.choices` (a `ModelChoiceIterator`).
https://github.com/django/django/pull/13060/files
--
Ticket URL: <https://code.djangoproject.com/ticket/32146>
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/049.5f3775ab2748ba85874a1207384fe0fc%40djangoproject.com.