Skip to content

Commit

Permalink
Use relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
izidormatusov committed Mar 6, 2014
1 parent fe73784 commit 2e4379a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
10 changes: 3 additions & 7 deletions oscar_approval/apps/approval/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
order_line_rejected.connect(receive_order_line_rejected)
2 changes: 1 addition & 1 deletion oscar_approval/apps/approval/receivers.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
1 change: 0 additions & 1 deletion oscar_approval/apps/approval/signals.py
Original file line number Diff line number Diff line change
@@ -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"])

0 comments on commit 2e4379a

Please sign in to comment.