1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

get rid of star import in unified_jobs.py

This commit is contained in:
AlanCoding 2018-11-12 13:38:58 -05:00
parent a00ed8e297
commit cee7ac9511
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -30,7 +30,12 @@ from rest_framework.exceptions import ParseError
from polymorphic.models import PolymorphicModel
# AWX
from awx.main.models.base import * # noqa
from awx.main.models.base import (
CommonModelNameNotUnique,
PasswordFieldsModel,
NotificationFieldsModel,
prevent_search
)
from awx.main.dispatch.control import Control as ControlDispatcher
from awx.main.models.mixins import ResourceMixin, TaskManagerUnifiedJobMixin
from awx.main.utils import (
@ -315,6 +320,7 @@ class UnifiedJobTemplate(PolymorphicModel, CommonModelNameNotUnique, Notificatio
Return notification_templates relevant to this Unified Job Template
'''
# NOTE: Derived classes should implement
from awx.main.models.notifications import NotificationTemplate
return NotificationTemplate.objects.none()
def create_unified_job(self, **kwargs):