added Search form, not working yet
This commit is contained in:
1 parent
6405baa945
commit
9c8fa6ca1d
5 files changed
+63
-5
No files matched your search
+4
-1
@@ -1,8 +1,11 @@
|
||||
from django.forms import ModelForm
|
||||
|
||||
from django.forms.extras.widgets import SelectDateWidget
|
||||
from .models import Sujet
|
||||
|
||||
class SujetCreateForm(ModelForm):
|
||||
class Meta:
|
||||
model = Sujet
|
||||
fields = ['nom', 'surnom', 'prenom', 'genre', 'premiere_rencontre']
|
||||
widgets = {
|
||||
'premiere_rencontre': SelectDateWidget(empty_label=("Année", "Mois", "Jour")),
|
||||
}
|
||||
Reference in new issue
Block a user