Fix a bug with get_choices function which doesn't return anything if empty_selection_list is False

This commit is contained in:
Benbb96 2022-04-11 00:15:48 +02:00
parent dbcd0fe6b4
commit 5701bf0229

View File

@ -1891,7 +1891,7 @@ class CustomField(models.Model):
choices = self.choices_as_array
if self.empty_selection_list:
choices.insert(0, ('', '---------'))
return choices
return choices
def build_api_field(self):
customfield_to_api_field_dict = {