|
@@ -2,12 +2,9 @@ from rest_framework.decorators import detail_route
|
|
|
from rest_framework.permissions import IsAuthenticated
|
|
|
from rest_framework.response import Response
|
|
|
from rest_framework.settings import api_settings
|
|
|
-from rest_framework.views import APIView
|
|
|
from rest_framework.viewsets import ModelViewSet, ViewSet
|
|
|
|
|
|
from django.conf import settings
|
|
|
-from django.contrib.contenttypes.models import ContentType
|
|
|
-from django.http import Http404
|
|
|
from django.shortcuts import get_object_or_404
|
|
|
|
|
|
from dcim.models import (
|