tangentlabs/django-oscar — pull request #307 by elbaschid (2012-09-19 02:36:21+00:00)
Title: fixes issue with sending order related messages using Dispatcher

Sending out order related messages using the ``Dispatcher`` provided in Oscar raises an exception when a ``CommunicationEventType`` is provided. The reason is that creating a ``CommunicationEvent`` right at the end creates an instance using an invalid keyword ``type`` which should be ``event_type``.

I added a test for the ``Dispatcher`` and fixed the issue. I also fixed inserting the order number in the ``ORDER_PLACED`` templates which is not available in a ``{% blocktrans %}`` block in the way it was called.