#11390: If you use a callable as default value on a model field, it gets called
3
times.
----------------------------------+------------------------------------
Reporter: espen.nettbruk@… | Owner: (none)
Type: Bug | Status: closed
Component: Forms | Version: 1.0
Severity: Normal | Resolution: fixed
Keywords: models | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+------------------------------------
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"8178c4fbfba8c425ce2591662dc915722224f7f1" 8178c4f]:
{{{
#!CommitTicketReference repository=""
revision="8178c4fbfba8c425ce2591662dc915722224f7f1"
[3.1.x] Refs #11390 -- Clarified dual-calling of ChoiceField.choices
callable.
Backport of 0bf627f0b2f868cdcc53ac12cc7f390901d4b83d from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/11390#comment:21>
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/082.54b561ab6cb1ec7832b3e57911a82c21%40djangoproject.com.