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

Some fixes

parent 2642cd48
...@@ -26,6 +26,7 @@ class User(AbstractUser): ...@@ -26,6 +26,7 @@ class User(AbstractUser):
user_type = models.CharField( user_type = models.CharField(
max_length=20, max_length=20,
choices=TYPE_CHOICES, choices=TYPE_CHOICES,
default='apiclient',
) )
sub = models.CharField( sub = models.CharField(
max_length=150, max_length=150,
...@@ -165,7 +166,7 @@ class User(AbstractUser): ...@@ -165,7 +166,7 @@ class User(AbstractUser):
return 'APICLIENT {}'.format(self.username) return 'APICLIENT {}'.format(self.username)
else: else:
raise Exception() self.username
def msg(self, msg): def msg(self, msg):
return '[{}] {}'.format(self, msg) return '[{}] {}'.format(self, msg)
......
Supports Markdown
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