File size: 1,145 Bytes
56f6f21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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"]