added Search form, not working yet

This commit is contained in:
Arthur Gerbaud committed 2016-08-24 19:26:07 +02:00
1 parent 6405baa945
commit 9c8fa6ca1d
5 files changed
+63 -5

No files matched your search

+4 -1
View File
@@ -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")),
}