Skip to content

Commit

Permalink
new map structure
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 28, 2016
1 parent de1e812 commit 4d74ed5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/budy/models/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,15 @@ def pay_s(self, payment_data):
self._pay_stripe(payment_data)
self.mark_paid_s()

@appier.operation(name = "Notify")
def notify_s(self):
order = self.reload(map = True)
appier_extras.admin.Event.notify_g(
"order.new",
arguments = dict(
title = "New Order",
params = dict(
order = self.map()
order = order
)
)
)
Expand Down

0 comments on commit 4d74ed5

Please sign in to comment.