{ "info": { "author": "Wildcard Corp.", "author_email": "corporate@wildcardcorp.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "# Advanced Search Filter\n\nThis is a Django *Application* intended to provided a mechanism for users to\nsearch on individual fields of the change lists associated model. It also\nprovides a way to specify a date field as a 'date from' and another as a\n'date to' field.\n\nIt's integration with Django admin is a bit \"hackish\" for two reasons:\n\n 1. it inserts itself into the date hierarchy block in the change list form\n template, doing so because there isn't another suitable block that it can\n be inserted into and still look \"decent\"\n 2. it uses javascript to redirect the page to the same page, but with\n querystring values appropriate for the search. This is because the\n \"advanced search\" functionality is provided by a django template\n tag/filter, which cannot redirect the request from the backend\n\n\n## Requirements\n\n * **Browsers:** should work on IE9+ and most versions of other\n browsers. Makes use of DOMContentLoaded, window.location.href,\n document.body.style.display, innerHTML, addEventListener, and querySelector\n * **Django 1.5** (at least, that's the version it was developed for)\n * **Django Contrib Admin**\n\n\n## Usage\n\nFirst, download/install the app and add it to your settings (also making sure\nthat the django.contrib.admin is installed and activated):\n\n INSTALLED_APPS = (\n # ...\n 'django.contrib.admin',\n #...\n 'advancedsearchfilter',\n # ...\n )\n\nYou will also need to make sure that you have the `django.core.context_processors.request`\ncontext processor added to your `TEMPLATE_CONTEXT_PREPROCESSOR` setting in your\nsettings.py file.\n\nThen create a `django.forms.ModelForm` that defines the form\nto be displayed for searching. If this form contains a *Meta* class with a\n`date_from` or a `date_to` (or both) string property, then it uses the value\nof the string to identify a date field on the model it should use the `__gte`\nor `__lte` query filter on.\n\nAfter that, extend the `advancedsearchfilter/change_list.html` template in your own\n`templates/admin/change_list.html` (or equivalent):\n\n {% extends 'advancedsearchfilter/change_list.html' %}\n\nAnd then, add something like the following to your template:\n\n {% block date_hierarchy %}\n {% with adv_search_form_class=\"fully.qualified.ModelFormName\" %}\n {{block.super}}\n {% endwith %}\n {% endblock %}\n\nwhere the 'fully.qualified.ModelFormName' is the fully qualified object name\nof the ModelForm class you created.\n\nOr, alternatively, if you want to extend from a different change list, you can\nmanually add the contents of the\n`templates/advancedsearchfilter/change_list.html` file to your change list\ntemplate. You'll want to change the following line in your change list:\n\n {% block date_hierarchy %}{{ block.super }} {% advanced_search adv_search_form_class %}{% endblock %}\n\nto something like:\n\n {% block date_hierarchy %}\n {% with adv_search_form_class=\"fully.qualified.ModelFormName\" %}\n {{block.super}}\n {% endwith %}\n {% endblock %}\n\nwhere the 'fully.qualified.ModelFormName' is the fully qualified object name\nof the ModelForm class you created.\n\nCredit\n------\nFor implementation, customizations or the factored manager product that centralizes factored configuration, please contact us at https://wildcardcorp.com\ninfo@wildcardcorp.com \n715.869.3440\n\n\n.. image:: https://www.wildcardcorp.com/logo.png\n :height: 50\n :width: 382\n :alt: Original work by wildcardcorp.com\n :align: right", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/wildcardcorp/django-advancedsearchfilter", "keywords": "web django search", "license": "LICENSE.txt", "maintainer": "", "maintainer_email": "", "name": "django-advancedsearchfilter", "package_url": "https://pypi.org/project/django-advancedsearchfilter/", "platform": "", "project_url": "https://pypi.org/project/django-advancedsearchfilter/", "project_urls": { "Homepage": "http://github.com/wildcardcorp/django-advancedsearchfilter" }, "release_url": "https://pypi.org/project/django-advancedsearchfilter/0.2.3/", "requires_dist": null, "requires_python": "", "summary": "Advanced Search Filter for Django Contrib Admin", "version": "0.2.3" }, "last_serial": 5836492, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "523321f9b83be471d85d1e7b22094e4e", "sha256": "46f984f38e6129331efb9d47aedc1660363cc0fa1d55302a3ae0f6e9ea78e8a0" }, "downloads": -1, "filename": "django-advancedsearchfilter-0.1.tar.gz", "has_sig": false, "md5_digest": "523321f9b83be471d85d1e7b22094e4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5727, "upload_time": "2014-04-14T03:02:45", "url": "https://files.pythonhosted.org/packages/42/d1/b9cd19e9a1a730013fbb875246372b3a5adb5d03f85828b92d9c3dfa739d/django-advancedsearchfilter-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "88c03a0382ff4146c8f080cb15f5710d", "sha256": "10c1802a7a8f56784d2d9a7c359bc93865470341fcd78aab78a8a27872435725" }, "downloads": -1, "filename": "django-advancedsearchfilter-0.1.1.tar.gz", "has_sig": false, "md5_digest": "88c03a0382ff4146c8f080cb15f5710d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5941, "upload_time": "2014-04-25T14:48:25", "url": "https://files.pythonhosted.org/packages/f5/1d/f130230e1fc35d99e0c08cf352a65e65766eff9757f3f8b1d1c61b8bf0f5/django-advancedsearchfilter-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "485177ee93be09cdabd24fce9ef5b03a", "sha256": "d15ecf93cc70b14402d2caba81197a4fabeaace26a6d7935ae75090b88bae21e" }, "downloads": -1, "filename": "django-advancedsearchfilter-0.2.tar.gz", "has_sig": false, "md5_digest": "485177ee93be09cdabd24fce9ef5b03a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5848, "upload_time": "2014-07-01T17:29:54", "url": "https://files.pythonhosted.org/packages/41/7e/e8c6d2c2716cf86d6bf7912f976bc68c81e97efa61655485302fab039bc6/django-advancedsearchfilter-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "7285ba42adefe540de1908aac161d040", "sha256": "5617de205244406490603bd116460a72c412db7e8a091f4a6c226eac20937db6" }, "downloads": -1, "filename": "django-advancedsearchfilter-0.2.1.tar.gz", "has_sig": false, "md5_digest": "7285ba42adefe540de1908aac161d040", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5892, "upload_time": "2014-07-01T17:38:35", "url": "https://files.pythonhosted.org/packages/c8/47/dad163da1ddd1382bdf436c246e6bfe3e2bd0eaf168911e0bef8fba7d3bb/django-advancedsearchfilter-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "0640e9ad226e3d5ccf0aa45c8486a42f", "sha256": "55b87b8d8f9c9ede0cffc1b01e6da9df0f68f51ccfa52b226ce8cbb6577d26e7" }, "downloads": -1, "filename": "django-advancedsearchfilter-0.2.2.tar.gz", "has_sig": false, "md5_digest": "0640e9ad226e3d5ccf0aa45c8486a42f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6202, "upload_time": "2019-05-02T15:33:10", "url": "https://files.pythonhosted.org/packages/bf/5e/d893b9b00a80f07834198b22774ea9901b996a862476d045f8e70c8177c5/django-advancedsearchfilter-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "849f1c19d7f2067fd6c99f4b3f47a1e8", "sha256": "8dca219ce864a9651d6c798a6c73fa7a4f19e1efc30d3b60941573e506712f43" }, "downloads": -1, "filename": "django-advancedsearchfilter-0.2.3.tar.gz", "has_sig": false, "md5_digest": "849f1c19d7f2067fd6c99f4b3f47a1e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6168, "upload_time": "2019-05-03T02:32:47", "url": "https://files.pythonhosted.org/packages/bd/53/d5a0bf08a88e91c703d628e09aff80196af1fa133792b392597d10e9d366/django-advancedsearchfilter-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "849f1c19d7f2067fd6c99f4b3f47a1e8", "sha256": "8dca219ce864a9651d6c798a6c73fa7a4f19e1efc30d3b60941573e506712f43" }, "downloads": -1, "filename": "django-advancedsearchfilter-0.2.3.tar.gz", "has_sig": false, "md5_digest": "849f1c19d7f2067fd6c99f4b3f47a1e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6168, "upload_time": "2019-05-03T02:32:47", "url": "https://files.pythonhosted.org/packages/bd/53/d5a0bf08a88e91c703d628e09aff80196af1fa133792b392597d10e9d366/django-advancedsearchfilter-0.2.3.tar.gz" } ] }