Commit 58c8b514 authored by RJC's avatar RJC

fixed success redirect

parent 19ad0ab4
......@@ -33,7 +33,7 @@ class AnnouncementAddView(CreateView):
template_name = 'announcements/announcement-add.html'
def get_success_url(self):
return reverse('announcement:announcementdetailview', kwargs={'pk': self.object.id},
return reverse('announcements:announcementdetailview', kwargs={'pk': self.object.id},
current_app=self.request.resolver_match.namespace)
class AnnouncementEditView(UpdateView):
......@@ -42,7 +42,7 @@ class AnnouncementEditView(UpdateView):
fields = ['title', 'body', 'author']
def get_success_url(self):
return reverse('announcement:announcementdetailview', kwargs={'pk': self.object.id},
return reverse('announcements:announcementdetailview', kwargs={'pk': self.object.id},
current_app=self.request.resolver_match.namespace)
# Create your views here.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment