aboutsummaryrefslogtreecommitdiff
path: root/rpkid
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2013-06-13 17:56:49 +0000
committerMichael Elkins <melkins@tislabs.com>2013-06-13 17:56:49 +0000
commit1a47a4143dda582fe18a73cf4811445ad12c9703 (patch)
tree3e3e6cf2040cfdec8e95e904a66558a0c67f77eb /rpkid
parente02644a018ae790aeed3b64b0bdcc15895404ddd (diff)
fix botched decoration of the alert class-based views where the self argument was omitted, and the wrong parent class was used in super() due to copy+paste
closes #549 svn path=/trunk/; revision=5400
Diffstat (limited to 'rpkid')
-rw-r--r--rpkid/rpki/gui/app/views.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/rpkid/rpki/gui/app/views.py b/rpkid/rpki/gui/app/views.py
index 077daf5a..40bb3d02 100644
--- a/rpkid/rpki/gui/app/views.py
+++ b/rpkid/rpki/gui/app/views.py
@@ -1256,8 +1256,8 @@ def user_edit(request, pk):
class AlertListView(ListView):
# this nonsense is required to decorate CBVs
@method_decorator(handle_required)
- def dispatch(*args, **kwargs):
- return super(AlertDeleteView, self).dispatch(*args, **kwargs)
+ def dispatch(self, request, *args, **kwargs):
+ return super(AlertListView, self).dispatch(request, *args, **kwargs)
def get_queryset(self, **kwargs):
conf = self.request.session['handle']
@@ -1267,8 +1267,8 @@ class AlertListView(ListView):
class AlertDetailView(DetailView):
# this nonsense is required to decorate CBVs
@method_decorator(handle_required)
- def dispatch(*args, **kwargs):
- return super(AlertDeleteView, self).dispatch(*args, **kwargs)
+ def dispatch(self, request, *args, **kwargs):
+ return super(AlertDetailView, self).dispatch(request, *args, **kwargs)
def get_queryset(self, **kwargs):
conf = self.request.session['handle']
@@ -1287,8 +1287,8 @@ class AlertDeleteView(DeleteView):
# this nonsense is required to decorate CBVs
@method_decorator(handle_required)
- def dispatch(*args, **kwargs):
- return super(AlertDeleteView, self).dispatch(*args, **kwargs)
+ def dispatch(self, request, *args, **kwargs):
+ return super(AlertDeleteView, self).dispatch(request, *args, **kwargs)
def get_queryset(self, **kwargs):
conf = self.request.session['handle']