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.
18 lines
722 B
18 lines
722 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)
|
|
country = models.CharField(max_length=40, null=True, blank=True)
|
|
|
|
def __str__(self):
|
|
return self.username
|
|
|