Source code for intranet.apps.schedule.forms

from django.forms import ModelForm

from .models import Day, DayType


[docs]class DayTypeForm(ModelForm):
[docs] class Meta: model = DayType fields = ["name", "special", "codenames", "blocks"]
[docs]class DayForm(ModelForm):
[docs] class Meta: model = Day fields = ["date", "day_type"]