Skip to content

Commit

Permalink
improve return messages
Browse files Browse the repository at this point in the history
  • Loading branch information
willemarcel committed Jan 2, 2019
1 parent 799199e commit 7931c22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osmchadjango/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ def update_deleted_users(request):
except User.DoesNotExist:
pass
return Response(
{'detail': 'Changesets updated.'},
{'detail': 'Changesets updated and user renamed.'},
status=status.HTTP_200_OK
)
else:
return Response(
{'detail': 'Changeset was already checked.'},
{'detail': 'Payload is missing the `uids` field or it has an incorrect value.'},
status=status.HTTP_400_BAD_REQUEST
)

0 comments on commit 7931c22

Please sign in to comment.