django-ordered-model
django-ordered-model copied to clipboard
Method `to` can set value greater than max_order
Currently, I can use to method to set value greater than max_order.
I think that it is necessary to check first whether given value is greater than max_value.
If you think so, I can create a pull request to handle it.
Confirmed this is a bug I have encountered. It might be possible to set resulting order to the minimum of the to() argument and the maximum existing value using an f()-expression.