This commit is contained in:
Martin Quarda 2024-10-13 08:30:12 +02:00
parent 186d45a8e4
commit e45880bd8c

View File

@ -3,28 +3,35 @@ from django.contrib import admin
from django.contrib.auth.models import User as DjangoUser
from django.core.exceptions import ValidationError
from datetime import datetime
ALKATOR_CHOICES = (
(1, "Alkátor"),
(2, "Alkátor light"),
(3, "Nealkátor"),
)
ALKATOR_CLASSES = (
(1, "Jaro 2024 Sobkovice"),
(2, "Podzim 2024 Studené"),
(3, "Jaro 2025 Dolní Čermná")
)
ALKATOR_CHOICES_DICT = {
alkator_choice[0]: alkator_choice[1]
for alkator_choice in ALKATOR_CHOICES
}
ALKATOR_CLASSES_DICT = {
alkator_class[0]: alkator_class[1]
for alkator_class in ALKATOR_CLASSES
}
class User(models.Model):
first_name = models.CharField(max_length=120)
last_name = models.CharField(max_length=120)