Update method signatures to match signatures of superclasses
Issue: HIC-170
Change-Id: Iaad395237615dde9fb76e78ea619e89d40a8102e
diff --git a/crashreports/rest_api_crashreports.py b/crashreports/rest_api_crashreports.py
index 8cf051b..78707b9 100644
--- a/crashreports/rest_api_crashreports.py
+++ b/crashreports/rest_api_crashreports.py
@@ -59,7 +59,7 @@
serializer_class = CrashReportSerializer
filter_fields = ("device", "build_fingerprint", "radio_version")
- def dispatch(self, *args, **kwargs):
+ def dispatch(self, request, *args, **kwargs):
"""Dispatch an incoming HTTP request to the right method.
The method is overridden in order to replace the 'device__uuid'
@@ -69,7 +69,9 @@
self.queryset = Crashreport.objects.filter(
device__uuid=kwargs["uuid"]
)
- return generics.ListCreateAPIView.dispatch(self, *args, **kwargs)
+ return generics.ListCreateAPIView.dispatch(
+ self, request, *args, **kwargs
+ )
def perform_create(self, serializer):
"""Create a crash report instance in the database.