Motivation
Django 5.0 introduces new methods to define choices (see Django 5.0 announcement, now choices may be:
- an old style list/tuple
- a dict
- a class which inherits from
Choice
- a callable which return one of the previous
Proposed Solution
The method get_field_details should check which kind of choices are available on the field before using it.
Motivation
Django 5.0 introduces new methods to define choices (see Django 5.0 announcement, now choices may be:
ChoiceProposed Solution
The method
get_field_detailsshould check which kind of choices are available on the field before using it.