chore(api): rename editor role to host

This commit is contained in:
jo 2022-06-27 17:13:05 +02:00 committed by Kyle Robbertze
parent 4009e7eeb6
commit e730959e9f
5 changed files with 16 additions and 16 deletions

View file

@ -3,6 +3,6 @@ from django.db import models
class Role(models.TextChoices):
GUEST = "G", "Guest"
EDITOR = "H", "Editor"
HOST = "H", "Host"
MANAGER = "P", "Manager"
ADMIN = "A", "Admin"

View file

@ -7,7 +7,7 @@ from ...models import Role, User
class TestUserManager(APITestCase):
def test_create_user(self):
user = User.objects.create_user(
role=Role.EDITOR,
role=Role.HOST,
username="test",
password="test",
email="test@example.com",