2020-01-15 20:58:10 +01:00
|
|
|
from django import forms
|
|
|
|
from fiches.models import Profile
|
|
|
|
|
2020-01-27 19:58:25 +01:00
|
|
|
|
2020-01-15 20:58:10 +01:00
|
|
|
class ProfileForm(forms.ModelForm):
|
2020-01-27 19:58:25 +01:00
|
|
|
class Meta:
|
|
|
|
model = Profile
|
|
|
|
fields = [
|
|
|
|
"full_name",
|
|
|
|
"nickname",
|
|
|
|
"picture",
|
|
|
|
"department",
|
|
|
|
"promotion",
|
|
|
|
"birth_date",
|
|
|
|
"thurne",
|
|
|
|
"text_field",
|
|
|
|
"printing",
|
|
|
|
"keep_me"
|
|
|
|
]
|
|
|
|
|
2020-01-15 21:27:37 +01:00
|
|
|
|
|
|
|
class SearchForm(forms.Form):
|
2020-01-27 19:58:25 +01:00
|
|
|
name = forms.CharField(label='search name', max_length=1023)
|