{ "info": { "author": "Fran Hrzenjak", "author_email": "fran@changeset.hr", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: Freeware", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "django-grappelli-filters\n========================\n\nAutocomplete filter for Grappelli\n\nv 0.2.1 (usable, but only if you know why)\n\nFilter for Foreign key and ManyToMany relations with AJAX autocomplete.\nReuses features from Grappelli, works nicely along other filters and\nwith both standard and sidebar filter template\u2026\n\n.. figure:: docs_img/screenshot.png\n :alt: Screenshot\n\nInstallation\n------------\n\nPut ``grappelli-filters`` in your ``PYTHONPATH``.\n\nAdd ``'grappelli-filters'`` to ``INSTALLED_APPS``\n\nFilters\n-------\n\nRelated Autocomplete Filter\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThis filter is similar to a regular foreign key field filter, with two\ndifferences:\n\n- it has a nice AJAX-powered autocomplete UI (straight from Grappelli)\n- does not load all possible filter values in HTML - good for\n situations with many of related objects\n\nUsage\n'''''\n\nConfigure Grappelli autocomplete feature as described `here`_. Both\nModel method and ``SETTINGS`` value will work fine. For the inpatient,\nhere is the ``SETTINGS`` value:\n\n::\n\n GRAPPELLI_AUTOCOMPLETE_SEARCH_FIELDS = {\n \"myapp\": {\n \"mycategory\": (\"id__iexact\", \"name__icontains\",),\n }\n }\n\nIn ``admin.py`` add:\n\n::\n\n from grappelli_filters import RelatedAutocompleteFilter, FiltersMixin\n\n class MyModelAdmin(FiltersMixin, admin.ModelAdmin):\n list_filter = ( ... ('field_name', RelatedAutocompleteFilter), ... )\n \n\nSearch Filter\n~~~~~~~~~~~~~\n\nThis filter allows string searches over a single field. Several filters\ncombined provide better control over the resulting list then does the\nbuilt-in django-admin ``search_fields`` feature.\n\nUsage\n'''''\n\nIn admin.py add:\n\n::\n\n from grappelli_filters SearchFilter\n\n class MyModelAdmin(admin.ModelAdmin):\n list_filter = ( ... ('field_name', SearchFilter), ... )\n \n\nCase-sensitive Search Filter\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nSimilar to Search Filter, but searches are case-sensitive.\n\nUsage\n'''''\n\nUse ``SearchFilterC`` instead of ``SearchFilter``\n\n.. _here: https://django-grappelli.readthedocs.org/en/latest/customization.html#autocomplete-lookups", "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/frnhr/django-grappelli-filters/", "keywords": null, "license": "Unlicense", "maintainer": null, "maintainer_email": null, "name": "django-grappelli-filters", "package_url": "https://pypi.org/project/django-grappelli-filters/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-grappelli-filters/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/frnhr/django-grappelli-filters/" }, "release_url": "https://pypi.org/project/django-grappelli-filters/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "Additional filters for Djagno Grappelli admin", "version": "0.2.1" }, "last_serial": 1051113, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "e6a8df266865c2757831a98f13dd291c", "sha256": "5c4bbf99e64100c0c578a6cf61af4a57f98de5ac63651e48f4cd51ee8b5b20da" }, "downloads": -1, "filename": "django-grappelli-filters-0.2.tar.gz", "has_sig": false, "md5_digest": "e6a8df266865c2757831a98f13dd291c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7044, "upload_time": "2014-03-29T02:43:59", "url": "https://files.pythonhosted.org/packages/de/33/5389d25c888d6ae1a4c6686f24299cf752cf99e8a6194242d769d512f4ba/django-grappelli-filters-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "044ad40f2fdfa16ed013394de8fe94a5", "sha256": "94d74daee0d5c557f24293105c37ba28e5849d6191f391b32bfb1f9e10fee05f" }, "downloads": -1, "filename": "django-grappelli-filters-0.2.1.tar.gz", "has_sig": false, "md5_digest": "044ad40f2fdfa16ed013394de8fe94a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7181, "upload_time": "2014-04-04T07:06:48", "url": "https://files.pythonhosted.org/packages/1d/46/05a62e340a2100fd27906a69aa73ac53839faaa7ad263a37573af059c2e7/django-grappelli-filters-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "044ad40f2fdfa16ed013394de8fe94a5", "sha256": "94d74daee0d5c557f24293105c37ba28e5849d6191f391b32bfb1f9e10fee05f" }, "downloads": -1, "filename": "django-grappelli-filters-0.2.1.tar.gz", "has_sig": false, "md5_digest": "044ad40f2fdfa16ed013394de8fe94a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7181, "upload_time": "2014-04-04T07:06:48", "url": "https://files.pythonhosted.org/packages/1d/46/05a62e340a2100fd27906a69aa73ac53839faaa7ad263a37573af059c2e7/django-grappelli-filters-0.2.1.tar.gz" } ] }