Browse Source

Remove useless imports

split_api
Gabriel Detraz 6 years ago
parent
commit
c02938b133
  1. 2
      api/serializers.py
  2. 6
      api/views.py
  3. 3
      topologie/api/urls.py

2
api/serializers.py

@ -24,8 +24,6 @@
from rest_framework import serializers 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 # The namespace used for the API. It must match the namespace used in the
# urlpatterns to include the API URLs. # urlpatterns to include the API URLs.

6
api/views.py

@ -36,12 +36,6 @@ from rest_framework.authtoken.models import Token
from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.response import Response 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 . import serializers
from .pagination import PageSizedPagination from .pagination import PageSizedPagination
from .permissions import ACLPermission from .permissions import ACLPermission

3
topologie/api/urls.py

@ -36,11 +36,10 @@ urls_viewset = [
] ]
urls_view = [ urls_view = [
# (r"topologie/portprofile", views.PortProfileViewSet)
(r"topologie/switchs-ports-config", views.SwitchPortView), (r"topologie/switchs-ports-config", views.SwitchPortView),
(r"topologie/switchs-role", views.RoleView), (r"topologie/switchs-role", views.RoleView),
# Deprecated # Deprecated
(r"switchs/ports-config", views.SwitchPortView), (r"switchs/ports-config", views.SwitchPortView),
(r"switchs/role", views.RoleView), (r"switchs/role", views.RoleView),
] ]

Loading…
Cancel
Save