Commit 8d9be6e4 authored by Mediatek's avatar Mediatek

Modifie la façon dont les auteurs sont ajoutés

parent ef7625d2
......@@ -30,6 +30,8 @@ class AuteurForm(ModelForm):
fields = '__all__'
class MediaForm(ModelForm):
auteur = forms.ModelMultipleChoiceField(Auteur.objects.all(), widget=forms.CheckboxSelectMultiple, required=False)
class Meta:
model = Media
fields = '__all__'
......
......@@ -269,11 +269,10 @@ class ClefForm(ModelForm):
fields = '__all__'
class AdhesionForm(ModelForm):
adherent = forms.ModelMultipleChoiceField(User.objects.all(), widget=forms.CheckboxSelectMultiple)
adherent = forms.ModelMultipleChoiceField(User.objects.all(), widget=forms.CheckboxSelectMultiple, required=False)
class Meta:
model = Adhesion
# fields = ['annee_debut', 'annee_fin']
fields = '__all__'
class RightForm(ModelForm):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment