Skip to content

Commit

Permalink
remove None from validated_datas tuple in user/serializers
Browse files Browse the repository at this point in the history
  • Loading branch information
Viesich committed Nov 11, 2024
1 parent 8b8fdfb commit 2e04c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def create(self, validated_data):
return get_user_model().objects.create_user(**validated_data)

def update(self, instance, validated_data):
password = validated_data.pop("password", None)
password = validated_data.pop("password", )
user = super().update(instance, validated_data)
if password:
user.set_password(password)
Expand Down

0 comments on commit 2e04c2f

Please sign in to comment.