Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
style: lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
adrrf committed Mar 19, 2024
1 parent e324093 commit 7d32090
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion user/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class Meta:
fields = "__all__"



class UserSerializer(serializers.ModelSerializer):
password = serializers.CharField(write_only=True)
email = serializers.EmailField(write_only=True, required=False)
Expand Down
2 changes: 1 addition & 1 deletion user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def post(self, request):
{"error": "El nombre de usuario ya existe"},
status=status.HTTP_409_CONFLICT,
)

if User.objects.filter(email=email).exists():
return Response(
{"error": "El correo ya está registrado"},
Expand Down

0 comments on commit 7d32090

Please sign in to comment.