Commit 2070d384 authored by Gabriel Detraz's avatar Gabriel Detraz

Fix la creation superuser broken

parent 3648046d
......@@ -143,9 +143,10 @@ class UserManager(BaseUserManager):
if not linux_user_check(pseudo):
raise ValueError('Username shall only contain [a-z0-9-]')
user = self.model(
user = Adherent(
pseudo=pseudo,
surname=surname,
name=surname,
email=self.normalize_email(email),
)
......@@ -824,6 +825,8 @@ class Adherent(User):
null=True
)
def get_instance(adherentid, *args, **kwargs):
"""Try to find an instance of `Adherent` with the given id.
......
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