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
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',
2 matches
Mail list logo