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 ModifEventForm(forms.ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Event
|
model = Event
|
||||||
|
exclude = ['slug']
|
||||||
widgets = {
|
widgets = {
|
||||||
'description': forms.Textarea(attrs={"placeholder":"facultatif, balises html supportées"}),
|
'description': forms.Textarea(attrs={"placeholder":"facultatif, balises html supportées"}),
|
||||||
'date': forms.TextInput(attrs={"placeholder": 'jj/mm/aaaa'}),
|
'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)
|
message = forms.CharField(max_length=2000, widget=forms.Textarea(attrs={"placeholder":"Remplir ici pour remplacer le mail automatique"}), required=False)
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Event
|
model = Event
|
||||||
|
exclude = ['slug']
|
||||||
widgets = {
|
widgets = {
|
||||||
'nomcourt': forms.TextInput(attrs={"placeholder": '9 caractères max'}),
|
'nomcourt': forms.TextInput(attrs={"placeholder": '9 caractères max'}),
|
||||||
'description': forms.Textarea(attrs={"placeholder":"facultatif, balises html supportées"}),
|
'description': forms.Textarea(attrs={"placeholder":"facultatif, balises html supportées"}),
|
||||||
|
|
Loading…
Reference in a new issue