1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #1691: Cleaned up and reorganized import statements

This commit is contained in:
Jeremy Stretch
2017-11-07 11:08:23 -05:00
parent 2519ebff9d
commit 00986fd7bf
83 changed files with 159 additions and 219 deletions

View File

@@ -1,7 +1,6 @@
from __future__ import unicode_literals
import django_filters
from django.db.models import Q
from extras.filters import CustomFieldFilterSet

View File

@@ -3,10 +3,8 @@ from __future__ import unicode_literals
import django_tables2 as tables
from utilities.tables import BaseTable, ToggleColumn
from .models import Tenant, TenantGroup
TENANTGROUP_ACTIONS = """
{% if perms.tenancy.change_tenantgroup %}
<a href="{% url 'tenancy:tenantgroup_edit' slug=record.slug %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>

View File

@@ -1,10 +1,9 @@
from __future__ import unicode_literals
from rest_framework import status
from rest_framework.test import APITestCase
from django.contrib.auth.models import User
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
from tenancy.models import Tenant, TenantGroup
from users.models import Token

View File

@@ -4,7 +4,6 @@ from django.conf.urls import url
from . import views
app_name = 'tenancy'
urlpatterns = [

View File

@@ -13,8 +13,8 @@ from utilities.views import (
BulkDeleteView, BulkEditView, BulkImportView, ObjectDeleteView, ObjectEditView, ObjectListView,
)
from virtualization.models import VirtualMachine
from .models import Tenant, TenantGroup
from . import filters, forms, tables
from .models import Tenant, TenantGroup
#