rename FeatureQuery class

This commit is contained in:
John Anderson
2020-03-16 11:58:35 -04:00
parent 5bd91c0b6b
commit 067e92c1c2
7 changed files with 24 additions and 24 deletions

View File

@@ -8,7 +8,7 @@ from extras.models import Webhook
from utilities.api import get_serializer_for_model
from .choices import *
from .constants import *
from .utils import FeatureQuerySet
from .utils import FeatureQuery
def generate_signature(request_body, secret):
@@ -30,7 +30,7 @@ def enqueue_webhooks(instance, user, request_id, action):
"""
obj_type = ContentType.objects.get_for_model(instance.__class__)
webhook_models = ContentType.objects.filter(FeatureQuerySet('webhooks').get_queryset())
webhook_models = ContentType.objects.filter(FeatureQuery('webhooks').get_query())
if obj_type not in webhook_models:
return