You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
728 B

4 years ago
from django import forms
from .models import Resume
class ResumeForm(forms.ModelForm):
class Meta:
model = Resume
fields = ('name', 'sex', 'personID', 'email', 'birth', 'edu', 'school',
'major', 'experience', 'position', 'photo')
sex_list = (
('', ''),
('', ''),
)
edu_list = (
('大专', '大专'),
('本科', '本科'),
('硕士', '硕士'),
('博士', '博士'),
('其它', '其它'),
)
widgets = {
'sex': forms.Select(choices=sex_list),
'edu': forms.Select(choices=edu_list),
'photo': forms.FileInput(),
}