{ "info": { "author": "St\u00e9phane Raimbault", "author_email": "stephane.raimbault@webstack.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "webstack-django-sorting\n=======================\n\nWhat?\n-----\n\n``webstack-django-sorting`` is a Django app which allows for easy sorting of\ndata tables. You don't need to change anything to your views to use it. It\nprovides sorting links for table headers. It is the perfect companion of\n`django-pagination `_.\n\nA demonstration of the features is provided in `testproj` directory.\n\nFeatures\n--------\n\n- Django ORM or Python sorting\n- Switches between ascending, descending, and no sorting\n- Provides links to sort on different criterions\n- Visual feedback on applied ordering\n- Supports Python 2.7, 3.5 and 3.6\n- Supports translation of link titles\n\nUpgrade from v0.5.0 and below\n-----------------------------\n\nTo upgrade to ``webstack-django-sorting`` v1.0.0+, you must remove the old middleware\n``webstack_django_sorting.middleware.SortingMiddleware`` from ``MIDDLEWARE_CLASSES`` list.\n\nHow to use it in your project\n---------------------------------\n\n1. ``pip install webstack_django_sorting``\n\n2. Add the application to the ``INSTALLED_APPS`` list::\n\n INSTALLED_APPS = [\n # ...\n 'webstack_django_sorting',\n ]\n\n3. Check the request context processor is loaded in ``TEMPLATES`` options::\n\n TEMPLATES = [\n {\n 'BACKEND': 'django.template.backends.django.DjangoTemplates',\n 'DIRS': [],\n 'APP_DIRS': True,\n 'OPTIONS': {\n 'context_processors': [\n # ...\n 'django.template.context_processors.request',\n # ...\n ],\n },\n },\n ]\n\n4. Add this line at the top of your template to load the sorting tags::\n\n {% load sorting_tags %}\n\n5. Decide on a variable that you would like to sort, and use the\n autosort tag on that variable before iterating over it::\n\n {% autosort object_list %}\n\n6. Now, you want to display different headers with links to sort\n your objects_list::\n\n \n {% anchor first_name _(\"Name\") %}\n {% anchor creation_date _(\"Creation\") %}\n \n\n The first argument is a field or an attribute of the objects list, and the\n second one (optional) is a title that would be displayed. The previous\n snippet will be rendered like this in French::\n\n \n Nom\n Cr\u00e9ation\n \n\n If your application doesn't support internationalization, you can use a\n simple ``{% anchor first_name Name %}``.\n\nThat's it!\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/webstack/webstack-django-sorting/", "keywords": "sorting", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "webstack-django-sorting", "package_url": "https://pypi.org/project/webstack-django-sorting/", "platform": "", "project_url": "https://pypi.org/project/webstack-django-sorting/", "project_urls": { "Homepage": "http://github.com/webstack/webstack-django-sorting/" }, "release_url": "https://pypi.org/project/webstack-django-sorting/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "Easy sorting of tables with Django", "version": "1.0.1" }, "last_serial": 2675944, "releases": { "0.4": [ { "comment_text": "", "digests": { "md5": "4e50eb9e64f9d71754cf7687d5f42e47", "sha256": "df0206fe09fca21ae04873edb37801d91952260fc36e6c41459298ba347e86fc" }, "downloads": -1, "filename": "webstack-django-sorting-0.4.tar.gz", "has_sig": false, "md5_digest": "4e50eb9e64f9d71754cf7687d5f42e47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5776, "upload_time": "2014-01-09T23:27:49", "url": "https://files.pythonhosted.org/packages/84/a0/140984442581bb1390ae49b1226683e8e69b41acab51db42926971fe0f85/webstack-django-sorting-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "2881cd2cbf12ef75388ee3ce0e4e8bda", "sha256": "729b500ee25b53ea01e64501aa10794e78e84d4e7f12bffcebba4cda112a022d" }, "downloads": -1, "filename": "webstack-django-sorting-0.4.1.tar.gz", "has_sig": false, "md5_digest": "2881cd2cbf12ef75388ee3ce0e4e8bda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5786, "upload_time": "2014-01-09T23:42:58", "url": "https://files.pythonhosted.org/packages/3a/9f/245ab5e4d53c80627816f7889151de1032bb48cea3a53cfded94f6e2a879/webstack-django-sorting-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "daa2686512eae348f2dc3b22c5d65f40", "sha256": "5cb961629e682b03e2e661a3a24d555c0465f3970490534bd2efb3befc6b9cc6" }, "downloads": -1, "filename": "webstack_django_sorting-0.4.2-py2-none-any.whl", "has_sig": false, "md5_digest": "daa2686512eae348f2dc3b22c5d65f40", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7668, "upload_time": "2015-08-04T11:37:19", "url": "https://files.pythonhosted.org/packages/d3/51/ea8a92822134ad6eaeffb767993f1bef3eef0e454a21ddc67fa2feb5b897/webstack_django_sorting-0.4.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c5e8422515b04169d504607a4cdba829", "sha256": "a11434936059e26cc433dcde9a18887a8e32623645498c44b71d96397c4642dc" }, "downloads": -1, "filename": "webstack-django-sorting-0.4.2.tar.gz", "has_sig": false, "md5_digest": "c5e8422515b04169d504607a4cdba829", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5721, "upload_time": "2015-05-30T17:21:35", "url": "https://files.pythonhosted.org/packages/6f/c6/5801d29ce382826c5c243362507d65449a0e78f06d28a995c3ef0177cf70/webstack-django-sorting-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "49533233a7058920629d3036ee020f6a", "sha256": "72abd5ffb63cc8933e0f418d3cf4f8b23f9329eeb74bd925fa309f8193bbf95a" }, "downloads": -1, "filename": "webstack_django_sorting-0.4.3-py2-none-any.whl", "has_sig": false, "md5_digest": "49533233a7058920629d3036ee020f6a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7677, "upload_time": "2015-12-11T10:52:11", "url": "https://files.pythonhosted.org/packages/bb/f6/a8947fa12ccb0cc7b39591eb9baf5ff8160b95b44546df5fc46706ad933e/webstack_django_sorting-0.4.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "21d98fec83d8e887fb56aba4948047a9", "sha256": "61aa2deb62453e9027e88a63c55508bc43db56263a202c8af4a7bda04e90a739" }, "downloads": -1, "filename": "webstack-django-sorting-0.4.3.tar.gz", "has_sig": false, "md5_digest": "21d98fec83d8e887fb56aba4948047a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5778, "upload_time": "2015-12-11T10:52:06", "url": "https://files.pythonhosted.org/packages/97/f6/72af0f27a30939aa04eb4d63793a6b22c1b33baf026511fde60e84763c5f/webstack-django-sorting-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "a1aae3c673ed04b4e22208abca87f86e", "sha256": "ef0f920ffe5d6f22f7a1865fd1efdb1bcdc3d031e15934a5fa0640db72ff114c" }, "downloads": -1, "filename": "webstack_django_sorting-0.4.4-py3-none-any.whl", "has_sig": false, "md5_digest": "a1aae3c673ed04b4e22208abca87f86e", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7830, "upload_time": "2016-12-09T10:24:17", "url": "https://files.pythonhosted.org/packages/b3/f6/3e9111330770abc60dd2f96aa5168ec69afa41e09fa5d5648144cde28422/webstack_django_sorting-0.4.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "14bdb828981cb6ee3c9124cfdb659bc4", "sha256": "69f1bfa4da91cc3625ed835b24d22ed88d8f644a63a6c0646cb82f7ff94139af" }, "downloads": -1, "filename": "webstack-django-sorting-0.4.4.tar.gz", "has_sig": false, "md5_digest": "14bdb828981cb6ee3c9124cfdb659bc4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5870, "upload_time": "2016-12-09T10:24:14", "url": "https://files.pythonhosted.org/packages/46/04/f213a4c2e1bd5bd0b2c22b16d32f21d4a3480d652c7e2e18e7796edd1ce2/webstack-django-sorting-0.4.4.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "f11a812386216a0e79723cccdfda0c7f", "sha256": "7a29e44c05e5ec126faa9eaf08029fee98593bf52d0eadb0f0774698b323f181" }, "downloads": -1, "filename": "webstack_django_sorting-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f11a812386216a0e79723cccdfda0c7f", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 7737, "upload_time": "2017-01-24T11:49:09", "url": "https://files.pythonhosted.org/packages/a5/34/4e307a9dd84c07698bfe10e00fcf4c24595d8c5b03975eea8c54c0e804ad/webstack_django_sorting-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d02a87e0eaf8ce7de9f2d8ef552979c5", "sha256": "0d9ac44cff8dc0e6fa68fb95ce1ae5ed644b4531bbe4227e95eb851998b9292d" }, "downloads": -1, "filename": "webstack-django-sorting-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d02a87e0eaf8ce7de9f2d8ef552979c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6124, "upload_time": "2017-01-24T11:49:08", "url": "https://files.pythonhosted.org/packages/b4/bb/cb69a6a85f1cfd286f38433fb928a13a6e69ba0941fabd250ff0f39e641c/webstack-django-sorting-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "9120b39f5e0fe9c47facf4e99009f70b", "sha256": "a74e1a8b3e85b9e85f8c9d51f0beda90cb42f19bc1c7b01f78b1b6ebd77864cc" }, "downloads": -1, "filename": "webstack_django_sorting-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9120b39f5e0fe9c47facf4e99009f70b", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8121, "upload_time": "2017-03-01T15:57:37", "url": "https://files.pythonhosted.org/packages/e4/7a/be09abcf8526ecab9241b15f48aa2dfd0abfddcb444dde1342a9b3db1224/webstack_django_sorting-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f5407f58294cec624e51e9a6131535cb", "sha256": "b5df9f5f9d689daa255e3272cc4f55791d10f13d19c6e3c90f56bbf5f5a9f152" }, "downloads": -1, "filename": "webstack-django-sorting-1.0.1.tar.gz", "has_sig": false, "md5_digest": "f5407f58294cec624e51e9a6131535cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6379, "upload_time": "2017-03-01T15:57:35", "url": "https://files.pythonhosted.org/packages/60/9c/cd5ff9e8c436c4781ead9bfb3555e7b768eb144f7db849435b9736321550/webstack-django-sorting-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9120b39f5e0fe9c47facf4e99009f70b", "sha256": "a74e1a8b3e85b9e85f8c9d51f0beda90cb42f19bc1c7b01f78b1b6ebd77864cc" }, "downloads": -1, "filename": "webstack_django_sorting-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9120b39f5e0fe9c47facf4e99009f70b", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8121, "upload_time": "2017-03-01T15:57:37", "url": "https://files.pythonhosted.org/packages/e4/7a/be09abcf8526ecab9241b15f48aa2dfd0abfddcb444dde1342a9b3db1224/webstack_django_sorting-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f5407f58294cec624e51e9a6131535cb", "sha256": "b5df9f5f9d689daa255e3272cc4f55791d10f13d19c6e3c90f56bbf5f5a9f152" }, "downloads": -1, "filename": "webstack-django-sorting-1.0.1.tar.gz", "has_sig": false, "md5_digest": "f5407f58294cec624e51e9a6131535cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6379, "upload_time": "2017-03-01T15:57:35", "url": "https://files.pythonhosted.org/packages/60/9c/cd5ff9e8c436c4781ead9bfb3555e7b768eb144f7db849435b9736321550/webstack-django-sorting-1.0.1.tar.gz" } ] }