Supprime les RemovedInDjango18Warning
Ils s'agissait de l'absence de champs `exclude` ou `fields` dans les formulaires de création et modifications d'événements dans le calendrier.
This commit is contained in:
parent
03e712c1fc
commit
0f68f043df
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@ from gestion.models import ErnestoUser
|
|||
class ModifEventForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Event
|
||||
exclude = ['slug']
|
||||
widgets = {
|
||||
'description': forms.Textarea(attrs={"placeholder":"facultatif, balises html supportées"}),
|
||||
'date': forms.TextInput(attrs={"placeholder": 'jj/mm/aaaa'}),
|
||||
|
@ -20,6 +21,7 @@ class EventForm(forms.ModelForm):
|
|||
message = forms.CharField(max_length=2000, widget=forms.Textarea(attrs={"placeholder":"Remplir ici pour remplacer le mail automatique"}), required=False)
|
||||
class Meta:
|
||||
model = Event
|
||||
exclude = ['slug']
|
||||
widgets = {
|
||||
'nomcourt': forms.TextInput(attrs={"placeholder": '9 caractères max'}),
|
||||
'description': forms.Textarea(attrs={"placeholder":"facultatif, balises html supportées"}),
|
||||
|
|
Loading…
Reference in a new issue