mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 12:00:12 +03:00
Added null value for list.
If "many" enabled on PrimaryKeyRelatedField, it ignores required=True
This commit is contained in:
parent
93b9245b87
commit
a6465186fd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user