mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-09 11:16:52 +02:00
fixed custom field list without blank default
This commit is contained in:
parent
949179ec2e
commit
9aa32cc4f6
@ -196,8 +196,8 @@ class TicketForm(forms.Form):
|
||||
instanceargs['max_digits'] = field.max_length
|
||||
elif field.data_type == 'list':
|
||||
fieldclass = forms.ChoiceField
|
||||
choices = field.choices_as_array
|
||||
if field.empty_selection_list:
|
||||
choices = field.choices_as_array
|
||||
choices.insert(0, ('','---------' ) )
|
||||
instanceargs['choices'] = choices
|
||||
elif field.data_type == 'boolean':
|
||||
|
Loading…
x
Reference in New Issue
Block a user