from:
user_order = Signal(providing_args=["request", "order"])
user_order.send(sender=None, request=request, order=order)
user_order.send(sender=None, request=request, order=order)
to:
def user_order_handler(sender, **kwargs):
order = kwargs('order')
user_order.connect(user_order_handler)
On Tuesday, March 5, 2013 8:49:46 AM UTC-5, frocco wrote:
Would I send a signal after an order is saved?
On Tuesday, March 5, 2013 8:38:14 AM UTC-5, frocco wrote:Hello,I want to query the orders database every 5 minutes and alert admins that new orders have arrived.Would I use signals for this?Anyone have an example?Thank you
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment