Rename misnamed class
Rename ListCreateView to ListView in logfiles REST API as it is not
capable of anything other then listing since it inherits from
ListAPIView.
Issue: HIC-185
Change-Id: I3604fb96d7f4a1889df6dc6dbfd4b69fbd147746
diff --git a/crashreports/rest_api_logfiles.py b/crashreports/rest_api_logfiles.py
index 2ffe36b..8b13728 100644
--- a/crashreports/rest_api_logfiles.py
+++ b/crashreports/rest_api_logfiles.py
@@ -37,7 +37,7 @@
security=SWAGGER_SECURITY_REQUIREMENTS_ALL,
),
)
-class ListCreateView(generics.ListAPIView):
+class ListView(generics.ListAPIView):
"""Endpoint for listing log files."""
queryset = LogFile.objects.all()
diff --git a/crashreports/urls.py b/crashreports/urls.py
index e5489c4..53a5270 100644
--- a/crashreports/urls.py
+++ b/crashreports/urls.py
@@ -39,7 +39,7 @@
),
url(
r"^api/v1/logfiles/$",
- rest_api_logfiles.ListCreateView.as_view(),
+ rest_api_logfiles.ListView.as_view(),
name="api_v1_logfiles",
),
url(