resolved #21, started new design (removing some panels :)

This commit is contained in:
artus40
2016-12-29 13:52:29 +01:00
parent 2acea0e625
commit 6c995a34db
4 changed files with 17 additions and 14 deletions

View File

@@ -1,6 +1,8 @@
from django import forms
from django.forms import inlineformset_factory
from notes.forms import *
from django_select2.forms import Select2Widget
# Models
from .models import *
from .notes import *
@@ -22,7 +24,9 @@ class RencontreForm(forms.ModelForm):
class Meta:
model = Rencontre
fields = ['lieu', 'heure_debut', 'duree']
widgets = {
'lieu': Select2Widget(),
}
ObservationInlineFormSet = inlineformset_factory( Rencontre, Observation,