fix
This commit is contained in:
parent
186d45a8e4
commit
e45880bd8c
@ -3,28 +3,35 @@ from django.contrib import admin
|
|||||||
from django.contrib.auth.models import User as DjangoUser
|
from django.contrib.auth.models import User as DjangoUser
|
||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
|
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
|
|
||||||
ALKATOR_CHOICES = (
|
ALKATOR_CHOICES = (
|
||||||
(1, "Alkátor"),
|
(1, "Alkátor"),
|
||||||
(2, "Alkátor light"),
|
(2, "Alkátor light"),
|
||||||
(3, "Nealkátor"),
|
(3, "Nealkátor"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
ALKATOR_CLASSES = (
|
ALKATOR_CLASSES = (
|
||||||
(1, "Jaro 2024 Sobkovice"),
|
(1, "Jaro 2024 Sobkovice"),
|
||||||
(2, "Podzim 2024 Studené"),
|
(2, "Podzim 2024 Studené"),
|
||||||
(3, "Jaro 2025 Dolní Čermná")
|
(3, "Jaro 2025 Dolní Čermná")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
ALKATOR_CHOICES_DICT = {
|
ALKATOR_CHOICES_DICT = {
|
||||||
alkator_choice[0]: alkator_choice[1]
|
alkator_choice[0]: alkator_choice[1]
|
||||||
for alkator_choice in ALKATOR_CHOICES
|
for alkator_choice in ALKATOR_CHOICES
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ALKATOR_CLASSES_DICT = {
|
ALKATOR_CLASSES_DICT = {
|
||||||
alkator_class[0]: alkator_class[1]
|
alkator_class[0]: alkator_class[1]
|
||||||
for alkator_class in ALKATOR_CLASSES
|
for alkator_class in ALKATOR_CLASSES
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class User(models.Model):
|
class User(models.Model):
|
||||||
first_name = models.CharField(max_length=120)
|
first_name = models.CharField(max_length=120)
|
||||||
last_name = models.CharField(max_length=120)
|
last_name = models.CharField(max_length=120)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user