mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-26 20:47:10 +00:00
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
Block a user