#25731: Remove choices from ether instance or method attribute in Select widget
--------------------------------------+--------------------
Reporter: codingjoe | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Forms | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
`django.forms.widgets.Select` chains `self.choices` a kwarg `choices`.
I think this is a bit over the top, and results in a lot of complexity. I
couldn't find a good reason to why this is actually implemented that way.
I'd like to drop one of the two. Ether remove the choices from the
instance and keep passing them in all methods, or preferable remove them
from the method signatures.
The latter I think is cleaner but does include a bit of deprecation.
Cheers,
Joe
--
Ticket URL: <https://code.djangoproject.com/ticket/25731>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.7bfd306abaef523a41db44b771df1890%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.