amélioration de l'outil d'édition
This commit is contained in:
parent
1600736d48
commit
0f9252173c
@ -84,10 +84,8 @@ msgid "Status"
|
|||||||
msgstr "Status"
|
msgstr "Status"
|
||||||
|
|
||||||
#: agenda_culturel/models.py:70
|
#: agenda_culturel/models.py:70
|
||||||
#, fuzzy
|
|
||||||
#| msgid "Day of the event"
|
|
||||||
msgid "Category 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
|
#: agenda_culturel/models.py:72
|
||||||
msgid "Day of the event"
|
msgid "Day of the event"
|
||||||
@ -208,3 +206,6 @@ msgstr "ce mois-ci"
|
|||||||
|
|
||||||
msgid "next month"
|
msgid "next month"
|
||||||
msgstr "le mois prochain"
|
msgstr "le mois prochain"
|
||||||
|
|
||||||
|
msgid "Add another"
|
||||||
|
msgstr "Ajouter une autre"
|
@ -287,13 +287,14 @@ def tag_list(request):
|
|||||||
|
|
||||||
class EventCreateView(CreateView):
|
class EventCreateView(CreateView):
|
||||||
model = Event
|
model = Event
|
||||||
fields = ["title"] # TODO add elements
|
fields = '__all__'
|
||||||
|
|
||||||
template_name_suffix = "_create_form"
|
template_name_suffix = "_create_form"
|
||||||
|
|
||||||
|
|
||||||
class EventUpdateView(LoginRequiredMixin, UpdateView):
|
class EventUpdateView(LoginRequiredMixin, UpdateView):
|
||||||
model = Event
|
model = Event
|
||||||
fields = ["title"] # TODO add elements
|
fields = '__all__'
|
||||||
|
|
||||||
|
|
||||||
class EventDeleteView(LoginRequiredMixin, DeleteView):
|
class EventDeleteView(LoginRequiredMixin, DeleteView):
|
||||||
|
Loading…
Reference in New Issue
Block a user