Return directly the result of super().update()

This commit is contained in:
Vincent Simonin 2023-11-28 23:05:46 +01:00
parent 749e86fe91
commit 620a7cfc93
No known key found for this signature in database
GPG Key ID: 11611F3F005E89B9

View File

@ -60,9 +60,7 @@ class UserSerializer(ValidatedModelSerializer):
if password is not None: if password is not None:
instance.set_password(password) instance.set_password(password)
super().update(instance, validated_data) return super().update(instance, validated_data)
return instance
@extend_schema_field(OpenApiTypes.STR) @extend_schema_field(OpenApiTypes.STR)
def get_display(self, obj): def get_display(self, obj):