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
24 lines
728 B
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(),
|
|
} |