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.

9 lines
420 B

from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
ROLE_CHOICES = [('USER','User'), ('ADMIN','Admin')]
role = models.CharField(max_length=10, choices=ROLE_CHOICES, default='USER')
dive_certificate = models.CharField(max_length=255, blank=True)
dive_base = models.ForeignKey('divebases.DiveBase', null=True, blank=True, on_delete=models.SET_NULL)