Remove unneeded base generic.RedirectView and specify http_method_names on notifications.UpdateView
@@ -69,11 +69,11 @@ class DetailView(PageTitleMixin, generic.DetailView):
recipient=self.request.user)
-class UpdateView(BulkEditMixin, generic.RedirectView):
+class UpdateView(BulkEditMixin, generic.View):
model = Notification
+ http_method_names = ['post']
actions = ('archive', 'delete')
checkbox_object_name = 'notification'
- permanent = False
def get_object_dict(self, ids):
return self.model.objects.filter(
