Fix edition des adhérents

This commit is contained in:
Med 2017-07-05 01:05:14 +02:00
parent 5c51a56881
commit ef7625d2a4
1 changed files with 4 additions and 1 deletions

View File

@ -269,9 +269,12 @@ class ClefForm(ModelForm):
fields = '__all__'
class AdhesionForm(ModelForm):
adherent = forms.ModelMultipleChoiceField(User.objects.all(), widget=forms.CheckboxSelectMultiple)
class Meta:
model = Adhesion
fields = ['annee_debut', 'annee_fin']
# fields = ['annee_debut', 'annee_fin']
fields = '__all__'
class RightForm(ModelForm):
def __init__(self, *args, **kwargs):