{ "info": { "author": "James Cox", "author_email": "james.aaron.cox@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3" ], "description": "=============================\ndj-termsearch\n=============================\n\nSimple GET-based term searches for Django CBV's.\n\nDocumentation\n-------------\n\nThe full documentation is at https://dj-termsearch.readthedocs.org.\n\nQuickstart\n----------\n\nInstall dj-termsearch::\n\n pip install dj-termsearch\n\nAdd ``\"termsearch\"`` to your ``INSTALLED_APPS`` then just add ``TermSearchMixin`` to a view and go::\n\n from django.db import models\n from termsearch.views import TermSearchMixin\n\n class MyModelListView(TermSearchMixin, ListView):\n \n model = MyModel\n term = \"title\"\n lookup = \"iexact\"\n \nCheck the results at::\n \n https://example.com/list?q=barry\n \n \nAdvanced\n--------\n\nUse a ``list`` of model fields to use in the search::\n\n class AnotherListView(TermSearchMixin, ListView):\n \n model = MyModel\n terms = [\"title\", \"content\", \"author__name\"]\n lookup = \"iexact\"\n\nMap each field to a lookup type::\n\n class YetAnotherListView(TermSearchMixin, ListView):\n \n model = MyModel\n term_mapping = {\n \"title\": \"icontains\",\n \"tags__name\": \"iexact\",\n \"author__surname\": \"exact\",\n }\n \n\n\n\n\nHistory\n-------\n\n0.2.0 (2014-06-23)\n++++++++++++++++++\n\n* Added separate search mixins (SingleTermSearchMixin, MultiTermSearchMixin, MapTermSearchMixin).\n* Cleanup of docs.\n\n\n0.1.0 (2014-06-20)\n++++++++++++++++++\n\n* First release on PyPI.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Ogreman/django-termsearch", "keywords": "django,terms,search", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "dj-termsearch", "package_url": "https://pypi.org/project/dj-termsearch/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/dj-termsearch/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Ogreman/django-termsearch" }, "release_url": "https://pypi.org/project/dj-termsearch/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Simple term searches for Django CBV's.", "version": "0.2.0" }, "last_serial": 1139705, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "bdfefc41e6d5a041a35f91bc726aa3e5", "sha256": "7fec0cc2dbf904b09fc0e20b3b88dead054c92da6d29a1aaccdba339e829dcd4" }, "downloads": -1, "filename": "dj-termsearch-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bdfefc41e6d5a041a35f91bc726aa3e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4784, "upload_time": "2014-06-20T15:03:19", "url": "https://files.pythonhosted.org/packages/c8/0d/9a541243623ef4a94bc751768b8c87862c623a1bce019f2d02d6f4181a2c/dj-termsearch-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "f2b8eca75663c4ebeb64b473f22a1380", "sha256": "23a35db29956398cfd404eb88298022dff3bf9a1b8b6e4819efd3f6c250fc2ff" }, "downloads": -1, "filename": "dj_termsearch-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f2b8eca75663c4ebeb64b473f22a1380", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4455, "upload_time": "2014-06-27T13:09:24", "url": "https://files.pythonhosted.org/packages/d4/f6/e254708b15a752f04f7917953eefcdc21d89ca592d1d3f9cd5ddfffc2ac0/dj_termsearch-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "04488e61fa1b57b12b18b39fa3b22414", "sha256": "2a928f1cc3614ae11179dd7463005d7e97ce966fca45cb1bfe5c88d2872bc990" }, "downloads": -1, "filename": "dj-termsearch-0.2.0.tar.gz", "has_sig": false, "md5_digest": "04488e61fa1b57b12b18b39fa3b22414", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5364, "upload_time": "2014-06-23T10:25:29", "url": "https://files.pythonhosted.org/packages/b7/48/6dae13b2e7641bb174f786d7b4d5699d70da6dd7dce2f6e1c08290363e2c/dj-termsearch-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f2b8eca75663c4ebeb64b473f22a1380", "sha256": "23a35db29956398cfd404eb88298022dff3bf9a1b8b6e4819efd3f6c250fc2ff" }, "downloads": -1, "filename": "dj_termsearch-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f2b8eca75663c4ebeb64b473f22a1380", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4455, "upload_time": "2014-06-27T13:09:24", "url": "https://files.pythonhosted.org/packages/d4/f6/e254708b15a752f04f7917953eefcdc21d89ca592d1d3f9cd5ddfffc2ac0/dj_termsearch-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "04488e61fa1b57b12b18b39fa3b22414", "sha256": "2a928f1cc3614ae11179dd7463005d7e97ce966fca45cb1bfe5c88d2872bc990" }, "downloads": -1, "filename": "dj-termsearch-0.2.0.tar.gz", "has_sig": false, "md5_digest": "04488e61fa1b57b12b18b39fa3b22414", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5364, "upload_time": "2014-06-23T10:25:29", "url": "https://files.pythonhosted.org/packages/b7/48/6dae13b2e7641bb174f786d7b4d5699d70da6dd7dce2f6e1c08290363e2c/dj-termsearch-0.2.0.tar.gz" } ] }