#31961: forms.ChoiceField calls choices callback multiple times.
---------------------------+--------------------------------------
Reporter: Roy Smith | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 2.2
Severity: Normal | Resolution:
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 Carlton Gibson):
Hi Roy.
Thanks for the report. Short of a concrete suggestion here, I’m struggling
to see how this isn’t just a duplicate of #11390.
[https://code.djangoproject.com/ticket/11390#comment:16 The conclusion
there seems unchanged]:
> ...I'm not sure how or if it's possible to combine the two remaining
calls...
> One's the in memory model being instantiated and the other's the
ModelForm field/widget populating it's values. They seem separate and I'm
not sure where any memoisation of this value would go or if it would be a
great idea.
Russel’s initial reply seems the appropriate workaround.
What would be your thought there?
--
Ticket URL: <https://code.djangoproject.com/ticket/31961#comment:3>
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/066.e6c30d67d365b8ee983004bfbd41fbe8%40djangoproject.com.