Django Reorder 0.2.1 | Coderz Repository

django-reorder 0.2.1

Last updated:

0 purchases

django-reorder 0.2.1 Image
django-reorder 0.2.1 Images

Free

Languages

Categories

Add to Cart

Description:

djangoreorder 0.2.1

=============================Django Reorder=============================.. image:: https://badge.fury.io/py/django-reorder.png :target: https://badge.fury.io/py/django-reorderA project that helps sorting querysets in a specific orderDocumentation-------------The full documentation is at https://django-reorder.readthedocs.org.Quickstart----------Install Django Reorder:: pip install django-reorderThen use it in a project:: from django_reorder.reorder import reorder Tshirt.objects.order_by(reorder(size=['S', 'M', 'L']))Some more detailed examples can be foind on the :doc:`usage` page.Features--------* Can be used in ``order_by()`` and in ``annotate()`` calls.* Works across relationships.* Lets you control the sorting order of ``NULL`` values explicitly (otherwise it can vary across databases).Running Tests--------------Does the code actually work?:: source <YOURVIRTUALENV>/bin/activate (myenv) pipinstall−rrequirementstest.txt(myenv) python runtests.pyCredits---------Tools used in rendering this package:* Cookiecutter_* `cookiecutter-djangopackage`_.. _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackageHistory-------0.2.1 (2016-09-13)++++++++++++++++++* Forgot to ``pull`` before I ``push``ed...0.2.0 (2016-09-13)++++++++++++++++++* Added ``null_first()`` and ``null_last()`` shortcuts.0.1.0 (2016-07-26)++++++++++++++++++* First release on PyPI.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.