Success message for place update.
This commit is contained in:
parent
852def01d2
commit
275bec6560
@ -73,6 +73,8 @@ class PlaceUpdateView(IsAuthenticated, IsSubmitter, UpdateView):
|
|||||||
form_class = PlaceForm
|
form_class = PlaceForm
|
||||||
|
|
||||||
def get_success_url(self):
|
def get_success_url(self):
|
||||||
|
messages.success(
|
||||||
|
self.request, 'Successfully updated place.')
|
||||||
return reverse_lazy('place_detail', kwargs={'pk':self.get_object().pk})
|
return reverse_lazy('place_detail', kwargs={'pk':self.get_object().pk})
|
||||||
|
|
||||||
class PlaceCreateView(IsAuthenticated, View):
|
class PlaceCreateView(IsAuthenticated, View):
|
||||||
|
Loading…
Reference in New Issue
Block a user