Re: forms.ChoiceField calls choices callback twice?

2020-08-27 Thread Roy Smith
Hmmm, maybe related to https://code.djangoproject.com/ticket/26665 ? On Thursday, August 27, 2020 at 5:29:39 PM UTC-4 Roy Smith wrote: > I'm running: > > Python 3.7 > Django 2.2 > Debian 4.9 > > If I configure a forms ChoiceField with a callback function for choices, > it gets called twice each

forms.ChoiceField calls choices callback twice?

2020-08-27 Thread Roy Smith
I'm running: Python 3.7 Django 2.2 Debian 4.9 If I configure a forms ChoiceField with a callback function for choices, it gets called twice each time I render the form: > from unittest import TestCase > from django import forms > > def callback(): > print("callback") > return [('foo',