mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-14 09:14:47 +03:00
Remove useless if
This commit is contained in:
parent
998025afd3
commit
f15196a11d
|
@ -1106,7 +1106,6 @@ class ModelSerializer(Serializer):
|
||||||
source_info = info
|
source_info = info
|
||||||
source_model = model
|
source_model = model
|
||||||
|
|
||||||
if len(source_attrs) > 1:
|
|
||||||
attr_info = info
|
attr_info = info
|
||||||
attr_model = model
|
attr_model = model
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user