Modifie la façon dont les auteurs sont ajoutés
This commit is contained in:
parent
ef7625d2a4
commit
8d9be6e439
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue