#32912: Using label_from_instance on ModelChoiceField requires resetting
queryset
first
--------------------------------------+------------------------
Reporter: mbehm | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 3.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
--------------------------------------+------------------------
The part in the following old issue about having to reset queryset for the
label_from_instance to work is valid, even if you follow the documentation
to the letter your custom version of label_from_instance won't be called
unless you also define the queryset, even if the queryset would be the
default.
https://code.djangoproject.com/ticket/6839
--
Ticket URL: <https://code.djangoproject.com/ticket/32912>
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/048.82572391de21fce9f031b425392c44b6%40djangoproject.com.