Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 25, 2016
1 parent f720fed commit 480d754
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/budy/models/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import time

import appier
import appier_extras

from . import bundle
from . import country
Expand Down Expand Up @@ -168,9 +169,14 @@ def pay_s(self, payment_data):

def notify_s(self):
_order = self.reload()
self.send_notification(
appier_extras.admin.Event.handle_g(
"order.new",
order = self.map()
arguments = dict(
title = "New Order",
params = dict(
order = self.map()
)
)
)
self.notification_sent = True
self.save()
Expand Down

0 comments on commit 480d754

Please sign in to comment.