Commit da18bf88 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Change default user type

parent a0cad6fb
......@@ -26,7 +26,6 @@ class User(AbstractUser):
user_type = models.CharField(
max_length=20,
choices=TYPE_CHOICES,
default='apiclient',
)
sub = models.CharField(
max_length=150,
......@@ -152,7 +151,7 @@ class User(AbstractUser):
return self._is_active
def __str__(self):
if self.user_type == 'admin':
if self.is_superuser:
return 'ADMIN {}'.format(self.username)
elif self.user_type == 'oidcuser':
if not self.is_active:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment