There are several places in the satchmo code where order.orderstatus_set.latest() is used. For some reason, I have found that this always returns 'New' though. If instead I use the following:
order.orderstatus_set.latest('id') then it works correctly, and returns the most recent orderstatus that was added. Is this a bug, or am I just misunderstanding how it should work? My problem exists in src/satchmo/satchmo/apps/payment/views/confirm.py in _onSuccess() I think that perhaps nobody has stumbled into this because generally 'New' is what one would expect anyway. But I am in the situation where some action has been taken on the order, and the most recent status added to orderstatus is 'Billed'. -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To view this discussion on the web visit https://groups.google.com/d/msg/satchmo-users/-/QVXQTUNFNy0J. To post to this group, send email to satchmo-users@googlegroups.com. To unsubscribe from this group, send email to satchmo-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.