From c02938b1333da71ef219bf65c7451aea194ebebd Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Tue, 21 Apr 2020 17:48:42 +0200 Subject: [PATCH] Remove useless imports --- api/serializers.py | 2 -- api/views.py | 6 ------ topologie/api/urls.py | 3 +-- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/api/serializers.py b/api/serializers.py index 4b0cd4af..921a4ac6 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -24,8 +24,6 @@ from rest_framework import serializers -import preferences.models as preferences -import users.models as users # The namespace used for the API. It must match the namespace used in the # urlpatterns to include the API URLs. diff --git a/api/views.py b/api/views.py index 5ec0db1d..4ab37609 100644 --- a/api/views.py +++ b/api/views.py @@ -36,12 +36,6 @@ from rest_framework.authtoken.models import Token from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.response import Response -# import cotisations.models as cotisations -import machines.models as machines -import preferences.models as preferences -import topologie.models as topologie -import users.models as users -from re2o.utils import all_active_interfaces, all_has_access from . import serializers from .pagination import PageSizedPagination from .permissions import ACLPermission diff --git a/topologie/api/urls.py b/topologie/api/urls.py index c5c93f8f..f6febb95 100644 --- a/topologie/api/urls.py +++ b/topologie/api/urls.py @@ -36,11 +36,10 @@ urls_viewset = [ ] urls_view = [ - # (r"topologie/portprofile", views.PortProfileViewSet) (r"topologie/switchs-ports-config", views.SwitchPortView), (r"topologie/switchs-role", views.RoleView), # Deprecated (r"switchs/ports-config", views.SwitchPortView), (r"switchs/role", views.RoleView), -] \ No newline at end of file +]