Added null value for list.

If "many" enabled on PrimaryKeyRelatedField, it ignores required=True
This commit is contained in:
rolandkal 2014-04-13 03:16:22 +01:00
parent 93b9245b87
commit a6465186fd

View File

@ -33,7 +33,7 @@ class RelatedField(WritableField):
many_widget = widgets.SelectMultiple
form_field_class = forms.ChoiceField
many_form_field_class = forms.MultipleChoiceField
null_values = (None, '', 'None')
null_values = (None, '', 'None',[])
cache_choices = False
empty_label = None