amélioration de l'outil d'édition

This commit is contained in:
Jean-Marie Favreau 2023-11-09 18:22:50 +01:00
parent 1600736d48
commit 0f9252173c
2 changed files with 7 additions and 5 deletions

View File

@ -84,10 +84,8 @@ msgid "Status"
msgstr "Status"
#: agenda_culturel/models.py:70
#, fuzzy
#| msgid "Day of the event"
msgid "Category of the event"
msgstr "Date de l'événement"
msgstr "Catégorie de l'événement"
#: agenda_culturel/models.py:72
msgid "Day of the event"
@ -208,3 +206,6 @@ msgstr "ce mois-ci"
msgid "next month"
msgstr "le mois prochain"
msgid "Add another"
msgstr "Ajouter une autre"

View File

@ -287,13 +287,14 @@ def tag_list(request):
class EventCreateView(CreateView):
model = Event
fields = ["title"] # TODO add elements
fields = '__all__'
template_name_suffix = "_create_form"
class EventUpdateView(LoginRequiredMixin, UpdateView):
model = Event
fields = ["title"] # TODO add elements
fields = '__all__'
class EventDeleteView(LoginRequiredMixin, DeleteView):