PrimaryKeyRelatedField
with default=[]
causes error
#936
Labels
bug
Something isn't working
fix confirmation pending
issue has been fixed and confirmation from issue reporter is pending
Describe the bug
PrimaryKeyRelatedField
withdefault=[]
causeAttributeError: 'list' object has no attribute 'pk'
.I think it is common to use
PrimaryKeyRelatedField
withmany=True
anddefault=[]
. But it looksdefault=[]
causes errors.To Reproduce
serializers.py
errors
Expected behavior
No error.
The text was updated successfully, but these errors were encountered: