mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Cleaned up imports
This commit is contained in:
@ -8,12 +8,12 @@ from django.contrib.auth.models import User
|
||||
from django.contrib.contenttypes.fields import GenericForeignKey
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.contrib.postgres.fields import JSONField
|
||||
from django.urls import reverse
|
||||
from django.core.validators import ValidationError
|
||||
from django.db import models
|
||||
from django.db.models import Q
|
||||
from django.http import HttpResponse
|
||||
from django.template import Template, Context
|
||||
from django.urls import reverse
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
from django.utils.safestring import mark_safe
|
||||
|
||||
|
@ -1,15 +1,13 @@
|
||||
import time
|
||||
from importlib import import_module
|
||||
|
||||
from django.db.models.signals import post_save, post_delete
|
||||
from django.conf import settings
|
||||
from django.core.cache import caches
|
||||
from django.db.models import Q
|
||||
from django.dispatch import Signal
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.db.models import Q
|
||||
from django.db.models.signals import post_save, post_delete
|
||||
from django.dispatch import Signal
|
||||
|
||||
from utilities.utils import dynamic_import
|
||||
from extras.models import Webhook
|
||||
from utilities.utils import dynamic_import
|
||||
|
||||
|
||||
def enqueue_webhooks(webhooks, model_class, data, event, signal_received_timestamp):
|
||||
|
@ -1,8 +1,7 @@
|
||||
import requests
|
||||
import hmac
|
||||
import hashlib
|
||||
from rq.utils import import_attribute
|
||||
import hmac
|
||||
|
||||
import requests
|
||||
from django_rq import job
|
||||
|
||||
from extras.constants import WEBHOOK_CT_JSON, WEBHOOK_CT_X_WWW_FORM_ENCODED
|
||||
|
Reference in New Issue
Block a user