#37008: AutocompleteJsonView shouuld return source_model and remote_model in
process_request
-------------------------------------+-------------------------------------
Reporter: Mateusz Kurowski | Type:
| Cleanup/optimization
Status: new | Component:
| contrib.admin
Version: 6.0 | Severity: Normal
Keywords: admin, | Triage Stage:
autocomplete, | Unreviewed
AutocompleteJsonView |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Hey, I think it makes sense if you want to perform extra work in
subclassed `AutocompleteJsonView`.
By binding these values to instance properties they are accesible in
`get_queryset`
The lookup is already happening there's no reason to do it twice.
--
Ticket URL: <
https://code.djangoproject.com/ticket/37008>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.