Update method signatures to match signatures of superclasses
Issue: HIC-170
Change-Id: Iaad395237615dde9fb76e78ea619e89d40a8102e
diff --git a/crashreports/rest_api_heartbeats.py b/crashreports/rest_api_heartbeats.py
index adc15e4..33936fd 100644
--- a/crashreports/rest_api_heartbeats.py
+++ b/crashreports/rest_api_heartbeats.py
@@ -44,13 +44,13 @@
serializer_class = HeartBeatSerializer
filter_fields = ("device", "build_fingerprint", "radio_version")
- def get(self, *args, **kwargs):
+ def get(self, request, *args, **kwargs):
"""Override device__uuid parameter with uuid."""
if "uuid" in kwargs:
self.queryset = HeartBeat.objects.filter(
device__uuid=kwargs["uuid"]
)
- return generics.ListCreateAPIView.get(self, *args, **kwargs)
+ return generics.ListCreateAPIView.get(self, request, *args, **kwargs)
@method_decorator(