Initial commit
This commit is contained in:
commit
2d71deccae
18 changed files with 1385 additions and 0 deletions
12
stages/forms.py
Normal file
12
stages/forms.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from django import forms
|
||||
|
||||
from .models import Section, Period
|
||||
|
||||
|
||||
class PeriodForm(forms.Form):
|
||||
section = forms.ModelChoiceField(queryset=Section.objects.all())
|
||||
period = forms.ModelChoiceField(queryset=None)
|
||||
|
||||
def __init__(self, data, *args, **kwargs):
|
||||
pass
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue