From 564d20c73e283d2c876d9e35fffed5bcef18689f Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Wed, 12 Aug 2020 20:56:37 +0200 Subject: [PATCH] Added success message to deleteview. --- lostplaces/lostplaces_app/views.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lostplaces/lostplaces_app/views.py b/lostplaces/lostplaces_app/views.py index d364f9a..7e8e7de 100644 --- a/lostplaces/lostplaces_app/views.py +++ b/lostplaces/lostplaces_app/views.py @@ -46,7 +46,7 @@ class SignUpView(SuccessMessageMixin, CreateView): form_class = ExplorerCreationForm success_url = reverse_lazy('login') template_name = 'signup.html' - success_message = 'User created' + success_message = 'User created.' class PlaceListView(IsAuthenticated, View): def get(self, request): @@ -138,6 +138,5 @@ class PlaceCreateView(IsAuthenticated, View): class PlaceDeleteView(IsAuthenticated, IsSubmitter, SuccessMessageMixin, DeleteView): template_name = 'place/place_delete.html' model = Place - success_url = reverse_lazy('place_list') success_message = 'Successfully deleted place.' - \ No newline at end of file + success_url = reverse_lazy('place_list')