divio/django-shop — pull request #195 by jrief (2012-11-08 08:53:51+00:00)
Title: Separation of Concern for OrderManager.create_from_cart

When extending ```class Order```, there is no easy way to create an order object using customized data, as possibly available in ```MyDerivedOrder``` model. One would have to overload the whole method ```OrderManager.create_from_cart```.
This patch does some Separation of Concern and adds a new method ```OrderManager.create_order_object``` which then may be overloaded by a customized OrderManager for ```MyDerivedOrder```.

Note that this patch depends on pull request https://github.com/divio/django-shop/pull/194