{ "info": { "author": "Erik van Widenfelt", "author_email": "ew2789@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "|pypi| |travis| |coverage|\n\nedc-search\n----------\n\nAdd a slug field to models using the model mixin ``SearchSlugModelMixin``. Specify the fields and/or properties to include in the ``slug`` in ``search_slug_fields``:\n\n\n.. code-block:: python\n\n class TestModel(SearchSlugModelMixin, models.Model):\n\n search_slug_fields = ['f1', 'f2', 'f3']\n\n f1 = models.CharField(max_length=25, null=True)\n f2 = models.DateTimeField(null=True)\n f3 = models.IntegerField(null=True)\n f4 = models.CharField(max_length=25, null=True)\n\nFields in the ``search_slug_fields`` are converted to string in the slug:\n\n.. code-block:: python\n\n >>> obj = TestModel.objects.create(f1='run rabbit run!', f2=get_utcnow(), f3=12345)\n >>> obj.slug\n 'run-rabbit-run!|2017-06-02 19:08:32.163520+00:00|12345'\n\nFields not listed are not included:\n\n.. code-block:: python\n\n >>> obj = TestModel.objects.create(f1='slug me', f4='don\\'t slug me')\n >>> obj.slug\n 'slug-me||'\n\n``Null`` fields are converted to ``''``:\n\n.. code-block:: python\n\n >>> obj = TestModel.objects.create()\n >>> obj.slug\n '||'\n\nYou can use dotted syntax:\n\n.. code-block:: python\n\n class TestModel(SearchSlugModelMixin, models.Model):\n\n search_slug_fields = ['f1', 'name.first', 'name.last']\n\n f1 = models.CharField(max_length=25, null=True)\n\n def name(self):\n return FullName(first='Gore', last='vidal')\n\n >>> obj = TestModel.objects.create()\n >>> obj.slug\n '|Gore|Vidal'\n\n\n.. |pypi| image:: https://img.shields.io/pypi/v/edc-search.svg\n :target: https://pypi.python.org/pypi/edc-search\n\n.. |travis| image:: https://travis-ci.org/clinicedc/edc-search.svg?branch=develop\n :target: https://travis-ci.org/clinicedc/edc-search\n\n.. |coverage| image:: https://coveralls.io/repos/github/clinicedc/edc-search/badge.svg?branch=develop\n :target: https://coveralls.io/github/clinicedc/edc-search?branch=develop\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/clinicedc/edc-search", "keywords": "django edc search form", "license": "GPL license, see LICENSE", "maintainer": "", "maintainer_email": "", "name": "edc-search", "package_url": "https://pypi.org/project/edc-search/", "platform": "", "project_url": "https://pypi.org/project/edc-search/", "project_urls": { "Homepage": "https://github.com/clinicedc/edc-search" }, "release_url": "https://pypi.org/project/edc-search/0.1.10/", "requires_dist": null, "requires_python": "", "summary": "Simple edc-search forms and view mixins for clinicedc/edc", "version": "0.1.10" }, "last_serial": 5122306, "releases": { "0.1.10": [ { "comment_text": "", "digests": { "md5": "d844d4347c38ce57df3fd4b2ead052f0", "sha256": "ca06498dc834d5be557687b55e555a683817c32dd43668b8d3c6df1f81e81949" }, "downloads": -1, "filename": "edc_search-0.1.10-py3-none-any.whl", "has_sig": false, "md5_digest": "d844d4347c38ce57df3fd4b2ead052f0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19996, "upload_time": "2019-04-10T05:11:04", "url": "https://files.pythonhosted.org/packages/2a/b6/582b6277fcd992239798d05af922d19d323b16086d5b109efa8f1aa0e92a/edc_search-0.1.10-py3-none-any.whl" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "0e9fdedd2a3b51af6f79dec98fa91b6a", "sha256": "a0319149c1f2fd215b9478b4e80d853698d560be43c5a8ea661e0c22cb769aa2" }, "downloads": -1, "filename": "edc-search-0.1.5.macosx-10.13-x86_64.tar.gz", "has_sig": false, "md5_digest": "0e9fdedd2a3b51af6f79dec98fa91b6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10258, "upload_time": "2018-07-21T07:57:40", "url": "https://files.pythonhosted.org/packages/00/ad/9cec01986115c22d974f00519a8c80c0dcaaf071402e0e97da5e347d16d8/edc-search-0.1.5.macosx-10.13-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "a6373edc302a69f30898c221cac872d0", "sha256": "f40fdbfc1b14fe56ab0d40b0a531598b6023dada0efe612930f7c8ab67951358" }, "downloads": -1, "filename": "edc_search-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "a6373edc302a69f30898c221cac872d0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7419, "upload_time": "2018-07-21T07:57:38", "url": "https://files.pythonhosted.org/packages/bb/60/4b1598168d551f5fcc53c1dfb42eb77f82284d3114359861e758a6b2ce44/edc_search-0.1.5-py3-none-any.whl" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "92ffba04eea38210712039e420573ea8", "sha256": "a77169590ba40a8bbc7cdc01e5daa992b3a984693e47ecbc4fe449879ca8036e" }, "downloads": -1, "filename": "edc-search-0.1.6.macosx-10.13-x86_64.tar.gz", "has_sig": false, "md5_digest": "92ffba04eea38210712039e420573ea8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10266, "upload_time": "2018-08-01T01:52:38", "url": "https://files.pythonhosted.org/packages/d4/b1/965fc0c9e401ed22d3d59ab6c3f70d48deca46d4a9a85f3c94bbc9aac088/edc-search-0.1.6.macosx-10.13-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "5ebb9918116184bfaf3a2862f9561bb0", "sha256": "65f320708165a5be84990c7571623bbdfd913ae6d8d1121e67571c9da048885e" }, "downloads": -1, "filename": "edc_search-0.1.6-py3-none-any.whl", "has_sig": false, "md5_digest": "5ebb9918116184bfaf3a2862f9561bb0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7421, "upload_time": "2018-08-01T01:52:37", "url": "https://files.pythonhosted.org/packages/81/8b/80cf906dfe8edba2d46495411e28194598f7388c72b3f120638a1107975b/edc_search-0.1.6-py3-none-any.whl" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "ca33be8e7b9633fe0e9327138b0ba011", "sha256": "24348456a582896806b8cb82e5638fc77a5a4a1215362ed37b12ef0df571a9b6" }, "downloads": -1, "filename": "edc-search-0.1.7.macosx-10.13-x86_64.tar.gz", "has_sig": false, "md5_digest": "ca33be8e7b9633fe0e9327138b0ba011", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10164, "upload_time": "2018-08-07T21:37:19", "url": "https://files.pythonhosted.org/packages/c5/da/7304628de27f9d82f8de1afbdb16892347fe874eff54749b3d74b9cb2690/edc-search-0.1.7.macosx-10.13-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "6f22662e59851bb08715664b3c6669bb", "sha256": "b2322f4d400684fb0d1ee00894938d6b20b1f073f650b7d820a22fe83513d0a4" }, "downloads": -1, "filename": "edc_search-0.1.7-py3-none-any.whl", "has_sig": false, "md5_digest": "6f22662e59851bb08715664b3c6669bb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7419, "upload_time": "2018-08-07T21:37:18", "url": "https://files.pythonhosted.org/packages/9e/82/7a804c3133566dd08dfc59b030127b2dabc0aca80ebc82bd660b23ff7839/edc_search-0.1.7-py3-none-any.whl" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "9131b53340a553e3080d47390b67d981", "sha256": "01dfdabf5c09611902af3a84714f5cc9c334256b44a0a8f18e7543ce41d2081d" }, "downloads": -1, "filename": "edc_search-0.1.8-py3-none-any.whl", "has_sig": false, "md5_digest": "9131b53340a553e3080d47390b67d981", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19716, "upload_time": "2019-03-04T23:58:24", "url": "https://files.pythonhosted.org/packages/d0/b8/b91770b62b8c78968aac8c6cd9a704cdcdf43eb2bacd1613cac1fa1a6302/edc_search-0.1.8-py3-none-any.whl" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "9eb6f8b8502fd1c68abbb584a4a1e5ea", "sha256": "65d9991612d521f6da911f84f1906b4338ee366cc6d7e25014f261b9535da202" }, "downloads": -1, "filename": "edc_search-0.1.9-py3-none-any.whl", "has_sig": false, "md5_digest": "9eb6f8b8502fd1c68abbb584a4a1e5ea", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19983, "upload_time": "2019-03-25T23:36:25", "url": "https://files.pythonhosted.org/packages/50/18/82f242adf52c0ce142581230443f24082f4e046b7c51a5b7f02d6a85300b/edc_search-0.1.9-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d844d4347c38ce57df3fd4b2ead052f0", "sha256": "ca06498dc834d5be557687b55e555a683817c32dd43668b8d3c6df1f81e81949" }, "downloads": -1, "filename": "edc_search-0.1.10-py3-none-any.whl", "has_sig": false, "md5_digest": "d844d4347c38ce57df3fd4b2ead052f0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19996, "upload_time": "2019-04-10T05:11:04", "url": "https://files.pythonhosted.org/packages/2a/b6/582b6277fcd992239798d05af922d19d323b16086d5b109efa8f1aa0e92a/edc_search-0.1.10-py3-none-any.whl" } ] }