From 0f9252173cc72cb66c59687d06a6f1023f5f6c65 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Thu, 9 Nov 2023 18:22:50 +0100 Subject: [PATCH] =?UTF-8?q?am=C3=A9lioration=20de=20l'outil=20d'=C3=A9diti?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/locale/fr/LC_MESSAGES/django.po | 7 ++++--- src/agenda_culturel/views.py | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/agenda_culturel/locale/fr/LC_MESSAGES/django.po b/src/agenda_culturel/locale/fr/LC_MESSAGES/django.po index 29582c5..ddbffa9 100644 --- a/src/agenda_culturel/locale/fr/LC_MESSAGES/django.po +++ b/src/agenda_culturel/locale/fr/LC_MESSAGES/django.po @@ -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" \ No newline at end of file diff --git a/src/agenda_culturel/views.py b/src/agenda_culturel/views.py index eefd224..945b7a9 100644 --- a/src/agenda_culturel/views.py +++ b/src/agenda_culturel/views.py @@ -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):