Spaces:
Sleeping
Sleeping
Download class_timetable_v2/forms.py from vedangdhuri/Opti-Time: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/spaces/vedangdhuri/Opti-Time/resolve/main/class_timetable_v2/forms.py
- Command line
-
hf download hf://spaces/vedangdhuri/Opti-Time/class_timetable_v2/forms.py
-
curl -L -o forms.py https://huggingface.co/spaces/vedangdhuri/Opti-Time/resolve/main/class_timetable_v2/forms.py
1.15 kB
| from django import forms | |
| from .models import TycoInput, TycoBInput, SycoInput, SycoBInput, FycoInput, FycoBInput | |
| class TycoInputForm(forms.ModelForm): | |
| class Meta: | |
| model = TycoInput | |
| fields = ["subject_name", "teacher_name", "theory_credits", "practical_credits"] | |
| class TycoBInputForm(forms.ModelForm): | |
| class Meta: | |
| model = TycoBInput | |
| fields = ["subject_name", "teacher_name", "theory_credits", "practical_credits"] | |
| class SycoInputForm(forms.ModelForm): | |
| class Meta: | |
| model = SycoInput | |
| fields = ["subject_name", "teacher_name", "theory_credits", "practical_credits"] | |
| class SycoBInputForm(forms.ModelForm): | |
| class Meta: | |
| model = SycoBInput | |
| fields = ["subject_name", "teacher_name", "theory_credits", "practical_credits"] | |
| class FycoInputForm(forms.ModelForm): | |
| class Meta: | |
| model = FycoInput | |
| fields = ["subject_name", "teacher_name", "theory_credits", "practical_credits"] | |
| class FycoBInputForm(forms.ModelForm): | |
| class Meta: | |
| model = FycoBInput | |
| fields = ["subject_name", "teacher_name", "theory_credits", "practical_credits"] | |