# -*- coding: utf-8 -*-
from django import forms
from students.models import Student
 
# class ContactForm(forms.Form):   
    # name = forms.CharField(label=u'Имя')
    # surname = forms.CharField(label=u'Фамилия')
    # date_of_birth = forms.DateField(label=u'День рождения')
    # email = forms.EmailField(label=u'Эмейл', required=False)
    # phone = forms.CharField(label=u'Телефон', required=False)

class ContactForm(forms.ModelForm):   
    class Meta:
        model = Student
        fields = ['name','surname','date_of_birth','email','phone']
