added missing mail field for department
This commit is contained in:
parent
e99277f438
commit
e3bb44a990
2 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
|
||||||
from .models import Department, StudentGroup, TeachingUnit, StudentCard, TeachingSession, Attendance, Absence, \
|
from .models import (Department, StudentGroup, TeachingUnit, StudentCard, TeachingSession, Attendance, Absence,
|
||||||
AbsenceAttachment
|
AbsenceAttachment, User)
|
||||||
|
|
||||||
|
|
||||||
# Register your models here.
|
# Register your models here.
|
||||||
|
|
|
@ -27,6 +27,7 @@ class Department(models.Model):
|
||||||
|
|
||||||
id: uuid.UUID = models.UUIDField(default=uuid.uuid4, primary_key=True, editable=False, max_length=36)
|
id: uuid.UUID = models.UUIDField(default=uuid.uuid4, primary_key=True, editable=False, max_length=36)
|
||||||
name: str = models.CharField(max_length=32)
|
name: str = models.CharField(max_length=32)
|
||||||
|
mail: str = models.EmailField()
|
||||||
|
|
||||||
managers = models.ManyToManyField(to=get_user_model(), blank=True, related_name="managing_departments")
|
managers = models.ManyToManyField(to=get_user_model(), blank=True, related_name="managing_departments")
|
||||||
teachers = models.ManyToManyField(to=get_user_model(), blank=True, related_name="teaching_departments")
|
teachers = models.ManyToManyField(to=get_user_model(), blank=True, related_name="teaching_departments")
|
||||||
|
|
Loading…
Reference in a new issue