from django.forms import ModelForm
from .models import Student, School, OneTime


class StudentForm(ModelForm):
    class Meta:
        model = Student
        fields = ['name', 'surname', 'country', 'birthDate', 'weight_kg', 'blood',
                  'height_cm', 'primary_school', 'secondary_school']


class SchoolForm(ModelForm):
    class Meta:
        model = School
        fields = ['name', 'address', 'region', 'postcode', 'country', 'build_date']


class OneTimeForm(ModelForm):
    class Meta:
        model = OneTime
        fields = ['start_date', 'start_time', 'end_date', 'end_time', 'period', 'type']

from django.forms import ModelForm
from .models import Student, School, OneTime


class StudentForm(ModelForm):
    class Meta:
        model = Student
        fields = ['name', 'surname', 'country', 'birthDate', 'weight_kg', 'blood',
                  'height_cm', 'primary_school', 'secondary_school']


class SchoolForm(ModelForm):
    class Meta:
        model = School
        fields = ['name', 'address', 'region', 'postcode', 'country', 'build_date']


class OneTimeForm(ModelForm):
    class Meta:
        model = OneTime
        fields = ['schedule_category', 'start_datetime', 'stop_datetime', 'stop_type', 'lifetime_quantity', 'lifetime_unit']

add more fields