mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 17:09:59 +03:00
fixing for PUT requests
This commit is contained in:
parent
e6ad1089e7
commit
c87e53a692
|
@ -148,7 +148,7 @@ class UniqueTogetherValidator:
|
|||
else self.serializer.fields[field_name].source
|
||||
): (
|
||||
attrs[field_name]
|
||||
if self.instance is None
|
||||
if self.instance is None or not self.serializer.partial
|
||||
else attrs[self.serializer.fields[field_name].source]
|
||||
)
|
||||
for field_name in self.fields
|
||||
|
|
Loading…
Reference in New Issue
Block a user