chore(api): rename editor role to host
This commit is contained in:
parent
4009e7eeb6
commit
e730959e9f
5 changed files with 16 additions and 16 deletions
|
@ -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"
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue