mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-23 07:56:44 -06:00
Return directly the result of super().update()
This commit is contained in:
parent
749e86fe91
commit
620a7cfc93
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user