diff --git a/enterprise/backend/enterprise_core/views.py b/enterprise/backend/enterprise_core/views.py index 3a27ff9d7..f588d7de1 100644 --- a/enterprise/backend/enterprise_core/views.py +++ b/enterprise/backend/enterprise_core/views.py @@ -15,7 +15,7 @@ from rest_framework.parsers import FileUploadParser from rest_framework.permissions import AllowAny from rest_framework.response import Response -from rest_framework.views import +from rest_framework.views import APIView from django.conf import settings @@ -164,7 +164,7 @@ def upload_favicon(self, request, pk): return self.handle_file_upload(request, pk, "favicon") -class LicenseStatusView(): +class LicenseStatusView(APIView): def get(self, request): expiry_date_str = settings.LICENSE_EXPIRATION