From 275bec656020f1c61adb368051e9d7f020dc989c Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Wed, 12 Aug 2020 20:44:08 +0200 Subject: [PATCH] Success message for place update. --- lostplaces/lostplaces_app/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lostplaces/lostplaces_app/views.py b/lostplaces/lostplaces_app/views.py index 970a7d6..de4b46d 100644 --- a/lostplaces/lostplaces_app/views.py +++ b/lostplaces/lostplaces_app/views.py @@ -73,6 +73,8 @@ class PlaceUpdateView(IsAuthenticated, IsSubmitter, UpdateView): form_class = PlaceForm def get_success_url(self): + messages.success( + self.request, 'Successfully updated place.') return reverse_lazy('place_detail', kwargs={'pk':self.get_object().pk}) class PlaceCreateView(IsAuthenticated, View):