👔(backend) change field displayed on users endpoint

Change the field displayed on the users endpoint.
We need the email field to be displayed.
This commit is contained in:
Anthony LC
2024-05-29 21:26:01 +02:00
committed by Anthony LC
parent b4b308bda9
commit dbd4477e9a
4 changed files with 5 additions and 18 deletions

View File

@@ -118,10 +118,7 @@ def test_api_users_retrieve_me_authenticated():
assert response.status_code == 200
assert response.json() == {
"id": str(user.id),
"language": user.language,
"timezone": str(user.timezone),
"is_device": False,
"is_staff": False,
"email": user.email,
}