You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
771 B
21 lines
771 B
from django.db import models
|
|
from django.contrib.auth.models import AbstractUser
|
|
from . import club
|
|
import uuid
|
|
|
|
class CustomUser(AbstractUser):
|
|
pass
|
|
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=True)
|
|
umpire_code = models.CharField(max_length=50, blank=True, null=True)
|
|
clubs = models.ManyToManyField(club.Club, blank=True)
|
|
phone = models.CharField(max_length=15, null=True, blank=True)
|
|
first_name = models.CharField(max_length=50)
|
|
last_name = models.CharField(max_length=50)
|
|
licence_id = models.CharField(max_length=10, null=True, blank=True)
|
|
|
|
def __str__(self):
|
|
return self.username
|
|
|
|
# quels sont les champs qu'on veut absolument lorsque l'on créé un user ?
|
|
# first/last name ?
|
|
# club ?
|
|
|