Yuekui

Results 7 issues of Yuekui

Instead of re-loading `get_object()` or not using any prefetch after updating, we could keep the instance and re-prefetch related objects for the updated instance. refs: https://github.com/encode/django-rest-framework/pull/4553 https://github.com/encode/django-rest-framework/pull/4668 https://github.com/encode/django-rest-framework/issues/4661

Priority

- Move sorting logic to `pre_save` signal - Check max_order when saving - Allow specifying `default=0` so that new items could be inserted to the head position - Use `bulk_update`...

Resolved #33 BTW, is py35 support still necessary?

This is a separate PR from https://github.com/django-ordered-model/django-ordered-model/pull/272 Maybe it's easier to be reviewed: - Use bulk update method in command for performance - Add Python 3.10 in tox - Fix...

From Django 1.9 the language_code would support [ISO15924](http://www.unicode.org/iso15924/codelists.html), and the max_length should be extended to 7: `{2 letters language code}-{4 letters country code}`

## Description To conditionally create an endpoint, we plan to use a merge method combined with a ternary expression. However, this approach may lead to an 'Invalid function argument' error...