Cleaned up imports

This commit is contained in:
Jeremy Stretch 2018-07-16 17:09:21 -04:00
parent 8bc8cf5e2d
commit 9e2ac7b3f4
3 changed files with 7 additions and 10 deletions

View File

@ -8,12 +8,12 @@ from django.contrib.auth.models import User
from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.models import ContentType
from django.contrib.postgres.fields import JSONField from django.contrib.postgres.fields import JSONField
from django.urls import reverse
from django.core.validators import ValidationError from django.core.validators import ValidationError
from django.db import models from django.db import models
from django.db.models import Q from django.db.models import Q
from django.http import HttpResponse from django.http import HttpResponse
from django.template import Template, Context from django.template import Template, Context
from django.urls import reverse
from django.utils.encoding import python_2_unicode_compatible from django.utils.encoding import python_2_unicode_compatible
from django.utils.safestring import mark_safe from django.utils.safestring import mark_safe

View File

@ -1,15 +1,13 @@
import time import time
from importlib import import_module
from django.db.models.signals import post_save, post_delete
from django.conf import settings 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.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 extras.models import Webhook
from utilities.utils import dynamic_import
def enqueue_webhooks(webhooks, model_class, data, event, signal_received_timestamp): def enqueue_webhooks(webhooks, model_class, data, event, signal_received_timestamp):

View File

@ -1,8 +1,7 @@
import requests
import hmac
import hashlib import hashlib
from rq.utils import import_attribute import hmac
import requests
from django_rq import job from django_rq import job
from extras.constants import WEBHOOK_CT_JSON, WEBHOOK_CT_X_WWW_FORM_ENCODED from extras.constants import WEBHOOK_CT_JSON, WEBHOOK_CT_X_WWW_FORM_ENCODED