Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
agconti committed Aug 30, 2024
1 parent 62c034f commit e8891ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def has_object_permission(self, request, view, obj):
user_is_making_new_account = view.action == 'create'
if user_is_making_new_account:
return True

is_read_only_action = request.method in permissions.SAFE_METHODS
if is_read_only_action:
return True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def setUp(self):

def test_serializer_with_empty_data(self):
serializer = CreateUserSerializer(data={})
assert serializer.is_valid() == False
assert serializer.is_valid() is False

def test_serializer_with_valid_data(self):
serializer = CreateUserSerializer(data=self.user_data)
Expand Down

0 comments on commit e8891ec

Please sign in to comment.