diff --git a/oscar_approval/apps/approval/models.py b/oscar_approval/apps/approval/models.py index 21c81bc..e0e66ee 100644 --- a/oscar_approval/apps/approval/models.py +++ b/oscar_approval/apps/approval/models.py @@ -5,12 +5,8 @@ class OrderLineApprovalLog(AbstractOrderLineApprovalLog): pass - - -from oscar_approval.apps.approval.signals import (order_line_approved, - order_line_rejected) -from oscar_approval.apps.approval.receivers import (receive_order_line_approved, - receive_order_line_rejected) +from .signals import order_line_approved, order_line_rejected +from .receivers import receive_order_line_approved, receive_order_line_rejected order_line_approved.connect(receive_order_line_approved) -order_line_rejected.connect(receive_order_line_rejected) \ No newline at end of file +order_line_rejected.connect(receive_order_line_rejected) diff --git a/oscar_approval/apps/approval/receivers.py b/oscar_approval/apps/approval/receivers.py index 9ef488b..10ef3d9 100644 --- a/oscar_approval/apps/approval/receivers.py +++ b/oscar_approval/apps/approval/receivers.py @@ -1,6 +1,6 @@ from django.db.models import get_model -from oscar_approval.apps.approval.abstract_models import APPROVE, REJECT +from .abstract_models import APPROVE, REJECT def receive_order_line_approved(sender, line, user, **kwargs): diff --git a/oscar_approval/apps/approval/signals.py b/oscar_approval/apps/approval/signals.py index bf91552..305e4d7 100644 --- a/oscar_approval/apps/approval/signals.py +++ b/oscar_approval/apps/approval/signals.py @@ -1,5 +1,4 @@ from django import dispatch order_line_approved = dispatch.Signal(providing_args=["line", "user"]) - order_line_rejected = dispatch.Signal(providing_args=["line", "user"])