mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-22 23:46: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:
|
||||
instance.set_password(password)
|
||||
|
||||
super().update(instance, validated_data)
|
||||
|
||||
return instance
|
||||
return super().update(instance, validated_data)
|
||||
|
||||
@extend_schema_field(OpenApiTypes.STR)
|
||||
def get_display(self, obj):
|
||||
|
Loading…
Reference in New Issue
Block a user