Skip to content
Snippets Groups Projects
Commit c2805be2 authored by Elias Sagmo Larsen's avatar Elias Sagmo Larsen
Browse files

pylint/urls_unusedimports

parent 526224f8
No related branches found
No related tags found
No related merge requests found
Pipeline #127917 passed
"""Contains views for the workouts application. These are mostly class-based views.
"""
from rest_framework.response import Response
from rest_framework import generics, mixins
from rest_framework import permissions
from rest_framework.decorators import api_view
from rest_framework.pagination import PageNumberPagination
from rest_framework.reverse import reverse
from .models import Facility
from rest_framework.response import Response
from .serializers import FacilityGetSerializer, FacilityPostSerializer
......@@ -20,7 +20,8 @@ def api_root(request, format=None):
class FacilityGeneration(
mixins.CreateModelMixin, generics.GenericAPIView
mixins.CreateModelMixin,
generics.GenericAPIView
):
"""Class defining the web response for creation of a facility
......@@ -42,7 +43,9 @@ class StandardResultsSetPagination(PageNumberPagination):
class FacilityList(
mixins.ListModelMixin, mixins.CreateModelMixin, generics.GenericAPIView
mixins.ListModelMixin,
mixins.CreateModelMixin,
generics.GenericAPIView
):
"""Class defining the web response for retrieval of multiple facilities
......@@ -59,8 +62,8 @@ class FacilityList(
class FacilitySingle(
mixins.RetrieveModelMixin,
generics.GenericAPIView,
mixins.RetrieveModelMixin,
generics.GenericAPIView,
):
"""Class defining the web response for the details of an individual Facility.
......@@ -71,4 +74,4 @@ class FacilitySingle(
permission_classes = [permissions.IsAuthenticated]
def get(self, request, *args, **kwargs):
return self.retrieve(request, *args, **kwargs)
\ No newline at end of file
return self.retrieve(request, *args, **kwargs)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment