{ "info": { "author": "Corey Oordt", "author_email": "coreyoordt@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "==================\nDjango AlphaFilter\n==================\n\nDjango AlphaFilter was designed to work like Django's default ``date_hierarchy`` admin filter. It puts an clickable alphabet in the same location as the date hierarchy - at the top of the results list.\n\n**Changes in 1.0**\n* Only supports Django 1.9, 1.10 and 1.11\n* Supports Python 2.7 and 3.6\n* Added Tox test configuration\n\n**Changes in 0.7:**\n\n* Added a ``strip_params`` parameter to the template tag to strip out external query parameters.\n\n* Django 1.5 compatible.\n\n* Fall back to previous method of retrieving letters in Django 1.4, due to bug in Django's aggregation.\n\n* Fixed the encoding of \"&\" in the urls.\n\n* Added ``unfiltered_queryset`` to the context (Thanks to Ales Zabala Alava: https://github.com/shagi)\n\n**Changes in 0.6:**\n\n* Switched to Django querysets to retrieve letters. (Thanks to Ales Zabala Alava: https://github.com/shagi)\n\n* Django 1.4 compatible\n\n**Changes in 0.5:**\n\n* Added a new template tag to render the alphabet filter in a normal template using a queryset and field and optionally specified template.\n\n**Changes in 0.4:**\n\n* Added the ability to specify a 3rd-party application to apply the alphabet filter without having to modify that code (e.g. ``django.contrib.auth``\\ ). The ``ALPHAFILTER_ADMIN_FIELDS`` setting is used for this.\n\n* Now includes documentation!\n\n**Changes in 0.3:**\n\n* The ``ModelAdmin`` class can now specify its own ``DEFAULT_ALPHABET`` to use instead of the global setting.\n\n* ``DEFAULT_ALPHABET`` can now be a callable\n\n\nInstallation\n============\n\n1. The easiest method is to use ``pip``\\ ::\n\n\tpip install django-alphafilter\n\n2. If you download the source, you can install it by running the ``setup.py`` script::\n\n\tcd /path/to/django-alphafilter/\n\tpython setup.py install\n\n3. Add ``'alphafilter'`` to your project's ``settings.py`` file, so Django will find the templates and template tag.\n\nDefault Alphabet\n================\n\nThe default alphabet is the list of characters displayed in the admin even if there is no data for that character. As there is data, the letters of the alphabet are enabled. Any characters not in the default alphabet, but that exist in the data, are added dynamically.\n\nDue to issues regarding devising the proper alphabet by language, the default alphabet is a setting named ``DEFAULT_ALPHABET``\\ . The default setting is the ASCII alphabet and digits. You can set the ``DEFAULT_ALPHABET`` to a string, list, tuple or callable.\n\nIf you only what the ASCII characters, no digits::\n\n\tDEFAULT_ALPHABET = u'ABCDEFGHIJKLMNOPQRSTUVWXYZ'\n\nFor the German alphabet::\n\n\tDEFAULT_ALPHABET = u'0123456789A\\xc4BCDEFGHIJKLMNO\\xd6PQRS\\xdfTU\\xdcVWXYZ'\n\nFor the Icelandic alphabet::\n\n\tDEFAULT_ALPHABET = u'0123456789A\\xc1BD\\xd0E\\xc9FGHI\\xcdJKLMNO\\xd3PRSTU\\xdaVXY\\xdd\\xde\\xd6'\n\nYou can override the ``DEFAULT_ALPHABET`` on a model-by-model basis by adding a ``DEFAULT_ALPHABET`` attribute to your ``ModelAdmin`` class like so::\n\n\tclass TestNameAdmin(admin.ModelAdmin):\n\t model = TestName\n\t alphabet_filter = 'sorted_name'\n\n\t # A blank string only shows the characters in the database\n\t DEFAULT_ALPHABET = u''\n\n\n\nThe ordering of the alphabet will not stay the same as entered, it is sorted through Python's list sort method.\n\nUsing Alphabet Filter on a Model\n================================\n\nIn the model's ``admin.py`` set ``alphabet_filter`` to the name of a character field. For example::\n\n\talphabet_filter = 'name'\n\nYou also have to create a template for the model (or application) that will override the admin's ``change_list.html`` template.\n\nWithin your project's template directory, you need to create an ``admin`` directory, and a directory with the name of the application, and optionally the name of the model. For example, if you were adding the filter on the ``Tag`` model of an application named ``cooltags``\\ , the directory structure would look like::\n\n\tMyProject\n\t templates\n\t admin\n\t cooltags\n\t tag\n\nCreate a document named ``change_list.html`` and put it in either the application (``templates/admin/cooltags``\\ ) directory, to have it work for every model within that application or put it in the model directory (``templates/admin/cooltags/tag``\\ ) to have it work only for that model.\n\nThe change_list.html document should only contain one line::\n\n\t{% extends \"alphafilter/change_list.html\" %}\n\n.. note:: You **cannot** place this template in the ``admin`` directory, as it leads to an infinite loop of inheritance.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/coordt/django-alphabetfilter", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "django-alphafilter", "package_url": "https://pypi.org/project/django-alphafilter/", "platform": "", "project_url": "https://pypi.org/project/django-alphafilter/", "project_urls": { "Homepage": "http://github.com/coordt/django-alphabetfilter" }, "release_url": "https://pypi.org/project/django-alphafilter/1.0/", "requires_dist": null, "requires_python": "", "summary": "Django-AlphaFilter provides an admin widget for alphabetical filtering that works like date_hierarchy and an template tag for use elsewhere.", "version": "1.0" }, "last_serial": 3207651, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "f800148d1b72be70ebcc8b3330414c33", "sha256": "d49042663dd74ef2cf74d584d6c75568901f9244cfb8770ab6998fd66479c79c" }, "downloads": -1, "filename": "django-alphafilter-0.2.tar.gz", "has_sig": false, "md5_digest": "f800148d1b72be70ebcc8b3330414c33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 247190, "upload_time": "2010-07-19T14:58:29", "url": "https://files.pythonhosted.org/packages/cd/25/f9669af93ecffdb4e6afe32252c6144020373eaddedfb91f5a066575523e/django-alphafilter-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "77648c68e9f30adff7bb02e6c02ca4b3", "sha256": "1eef4d22e7ca62d921cc8b4ca3a501eef6fd6aa6cd6579ede11d8d4356363216" }, "downloads": -1, "filename": "django-alphafilter-0.2.1.tar.gz", "has_sig": false, "md5_digest": "77648c68e9f30adff7bb02e6c02ca4b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 247762, "upload_time": "2010-08-16T11:53:49", "url": "https://files.pythonhosted.org/packages/a5/62/39c63b8361d09fd85505582b35f73f60bb87f5ed13484c3036132024e9cd/django-alphafilter-0.2.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "71d3aad33f71c1f08f07c1f50057cfe1", "sha256": "2e557ba0da21a347996e5baf10b7058fd44fc6ac0e78d552341f978a471f42de" }, "downloads": -1, "filename": "django-alphafilter-0.3.tar.gz", "has_sig": false, "md5_digest": "71d3aad33f71c1f08f07c1f50057cfe1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 248109, "upload_time": "2010-08-16T16:56:39", "url": "https://files.pythonhosted.org/packages/d3/40/f67ae152ae6046e4fc10a1d3bce76d0506e43417afe5ec3483b171fecc24/django-alphafilter-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "7588081559dae2ec19d9f689310f8ee7", "sha256": "3d3910eab0d981975aa81f7c5e800837496023eb441bfd393a55bb319c513d0f" }, "downloads": -1, "filename": "django-alphafilter-0.4.tar.gz", "has_sig": false, "md5_digest": "7588081559dae2ec19d9f689310f8ee7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 615593, "upload_time": "2010-08-23T14:18:20", "url": "https://files.pythonhosted.org/packages/45/09/19ed04c6838bfa02476d45aa386f4886eb92689a5837b0d118c3d5f6535e/django-alphafilter-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "4e38055db2f5c709a0da8e556499cd78", "sha256": "73d594d6a42ceb910fd519315582f1d05106eb521acf7aa8e151086e263d53c7" }, "downloads": -1, "filename": "django-alphafilter-0.4.1.tar.gz", "has_sig": false, "md5_digest": "4e38055db2f5c709a0da8e556499cd78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 616065, "upload_time": "2010-08-23T19:13:56", "url": "https://files.pythonhosted.org/packages/c9/a7/8cf681e245da69d8e5caa4c32d4de2247634d3a69d84f055224027622725/django-alphafilter-0.4.1.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "63484a75960895d11f29c295475dc2e8", "sha256": "a4772a78f07a683b714e4eb22ab881ea0fa20253c41af9ce153855bffe29bc1d" }, "downloads": -1, "filename": "django-alphafilter-0.5.tar.gz", "has_sig": false, "md5_digest": "63484a75960895d11f29c295475dc2e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 632179, "upload_time": "2010-09-30T16:58:47", "url": "https://files.pythonhosted.org/packages/15/c3/7a635581547064bf13ee938f719daaee6e39d25a54e73cd802e6e46bafcd/django-alphafilter-0.5.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "3d4b1af5d132c7e8637070d0fdd2ef13", "sha256": "9a57c5c9fadbfd1a840c4be38c7ba59aa6e96415fbfe999dfc4c4cbeb5c18002" }, "downloads": -1, "filename": "django-alphafilter-0.5.2.tar.gz", "has_sig": false, "md5_digest": "3d4b1af5d132c7e8637070d0fdd2ef13", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 631643, "upload_time": "2011-03-29T17:08:47", "url": "https://files.pythonhosted.org/packages/fd/ee/61d53c6aee737c8366b8d6b166df9846e596b82fecbc4456e041bb064f63/django-alphafilter-0.5.2.tar.gz" } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "9f23fc7be08e1082a0b0b694c7d1f876", "sha256": "844ee7cf057b5ca40cd7593893a3dd2b940e6c556a587bb2996a9cd5834f5169" }, "downloads": -1, "filename": "django-alphafilter-0.5.3.tar.gz", "has_sig": false, "md5_digest": "9f23fc7be08e1082a0b0b694c7d1f876", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 626252, "upload_time": "2011-06-15T13:37:39", "url": "https://files.pythonhosted.org/packages/a2/b1/483da75ab122de936024362dafec6d714276662eb693851315978cad4c52/django-alphafilter-0.5.3.tar.gz" } ], "0.5.4": [ { "comment_text": "", "digests": { "md5": "c1d7dfd78fd6c4de57c44a4c0ecf9185", "sha256": "c656467e47825a179216d6feb851c42df8e579583e2e616fbdc4143b864b4f25" }, "downloads": -1, "filename": "django-alphafilter-0.5.4.tar.gz", "has_sig": false, "md5_digest": "c1d7dfd78fd6c4de57c44a4c0ecf9185", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 629023, "upload_time": "2012-02-11T19:35:04", "url": "https://files.pythonhosted.org/packages/99/28/1394e87724776d8832ac3f0d93226d8ff4aa42c0f13c207390a0cbae844f/django-alphafilter-0.5.4.tar.gz" } ], "0.5.5": [ { "comment_text": "", "digests": { "md5": "81cc6d1cbabbfd98c2c3420622d591fb", "sha256": "8486a0fa45520a248d10f56a4f0f1030b00fe54554c3f0e6195d1abab617dfe6" }, "downloads": -1, "filename": "django-alphafilter-0.5.5.tar.gz", "has_sig": false, "md5_digest": "81cc6d1cbabbfd98c2c3420622d591fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 629036, "upload_time": "2012-07-02T14:43:49", "url": "https://files.pythonhosted.org/packages/57/1b/2e449e005d48d7338978a948909b814015535901b20658fc03ba74fdc99c/django-alphafilter-0.5.5.tar.gz" } ], "0.5beta1": [ { "comment_text": "", "digests": { "md5": "d4d7e4d24a6fd6986e58c084e85577cf", "sha256": "b4f213b6f400406c4b13f105ba706c830c5a64ae90214b98d509cd7b6d665565" }, "downloads": -1, "filename": "django-alphafilter-0.5beta1.tar.gz", "has_sig": false, "md5_digest": "d4d7e4d24a6fd6986e58c084e85577cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 618353, "upload_time": "2010-09-22T14:33:11", "url": "https://files.pythonhosted.org/packages/de/e7/e1ef9904ae2cbbc72d1b989706651b3e07b425e1e08185e5bccf3f36db35/django-alphafilter-0.5beta1.tar.gz" } ], "0.5beta2": [ { "comment_text": "", "digests": { "md5": "898df5a00d6e4b03b2b2a7663c44379e", "sha256": "7e4def2a025f5e912e5d93cb0e4f036b9054d97ca41f84c983314ffe9ee9c554" }, "downloads": -1, "filename": "django-alphafilter-0.5beta2.tar.gz", "has_sig": false, "md5_digest": "898df5a00d6e4b03b2b2a7663c44379e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 636219, "upload_time": "2010-09-24T12:15:32", "url": "https://files.pythonhosted.org/packages/02/3d/eb79d91d53f347f86d1bffc7b814979b784690d35ac0175d7049db728f60/django-alphafilter-0.5beta2.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "7beece1f680ad6f12b0290db033d388b", "sha256": "fab9557e84cecec1d576070fa9c5ea443f1e21f6031edd09b3e488dcce0d2b36" }, "downloads": -1, "filename": "django-alphafilter-0.6.tar.gz", "has_sig": false, "md5_digest": "7beece1f680ad6f12b0290db033d388b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 637237, "upload_time": "2012-12-06T20:26:15", "url": "https://files.pythonhosted.org/packages/8c/6d/75774d683ad187734cb73e38601f1998aeb6950c8b6258f44cd9af33ecc3/django-alphafilter-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "3a95acebe26f60a331a9ddeecc4d3ccf", "sha256": "f43809f7fe33aa0d228f29b1eef90c7883c207f704a86b2747c40d153b0716e4" }, "downloads": -1, "filename": "django-alphafilter-0.7.tar.gz", "has_sig": false, "md5_digest": "3a95acebe26f60a331a9ddeecc4d3ccf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 638138, "upload_time": "2013-09-09T15:33:40", "url": "https://files.pythonhosted.org/packages/78/4f/a318ae033d2d02c96a4f402b3c1a7f849ac9bada964b1fc8d50b0521cb0d/django-alphafilter-0.7.tar.gz" } ], "0.7.1": [ { "comment_text": "", "digests": { "md5": "04bc1693b10d1a931d6f9172d4f74bda", "sha256": "4d1e22f1ce3afc1a667d0e380560bd701a818e7c2f6af3f2d7c78fbefff85b7c" }, "downloads": -1, "filename": "django-alphafilter-0.7.1.tar.gz", "has_sig": false, "md5_digest": "04bc1693b10d1a931d6f9172d4f74bda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 638459, "upload_time": "2013-09-09T17:01:07", "url": "https://files.pythonhosted.org/packages/2a/fd/9f1945c434fbc718eb6c3d25f4f5c024c7152ffe6f8e04f51fc699653187/django-alphafilter-0.7.1.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "6a962f9ac9b2c782c51007771cd2c54c", "sha256": "6d9d8165790d122167b7b187ec1ec206b54c86f3d289f25833e8a0ad925ea969" }, "downloads": -1, "filename": "django-alphafilter-0.8.tar.gz", "has_sig": false, "md5_digest": "6a962f9ac9b2c782c51007771cd2c54c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 638375, "upload_time": "2013-12-31T18:41:36", "url": "https://files.pythonhosted.org/packages/93/e3/90786d74d1ff8c7cc00c0a36672d2fe354676d2d831ab0d44efea6763126/django-alphafilter-0.8.tar.gz" } ], "0.9": [ { "comment_text": "", "digests": { "md5": "f047b4d539a2eab78dc4a9be8e10408c", "sha256": "ff3fe4c559d90dd06968f4989a6c31f7a9910994e52a16e9bf867e6be96af2ab" }, "downloads": -1, "filename": "django_alphafilter-0.9-py2-none-any.whl", "has_sig": false, "md5_digest": "f047b4d539a2eab78dc4a9be8e10408c", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 18556, "upload_time": "2016-08-30T12:38:37", "url": "https://files.pythonhosted.org/packages/ad/36/349fe4e92984d04602dc3c1c375b28bd1f8a59db059d58695f2d51e0fef1/django_alphafilter-0.9-py2-none-any.whl" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "9e82b7f0740773599ae37d1d115a457a", "sha256": "51357c67880c06b332578efab55a5adbbc46ee153fdf670e4ed98535fad14d47" }, "downloads": -1, "filename": "django_alphafilter-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9e82b7f0740773599ae37d1d115a457a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 18700, "upload_time": "2017-09-27T16:18:28", "url": "https://files.pythonhosted.org/packages/1e/f6/9089ca5edb743507353267f8252189d2d28f736ca994ec0fd9fbca4b5b57/django_alphafilter-1.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9e82b7f0740773599ae37d1d115a457a", "sha256": "51357c67880c06b332578efab55a5adbbc46ee153fdf670e4ed98535fad14d47" }, "downloads": -1, "filename": "django_alphafilter-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9e82b7f0740773599ae37d1d115a457a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 18700, "upload_time": "2017-09-27T16:18:28", "url": "https://files.pythonhosted.org/packages/1e/f6/9089ca5edb743507353267f8252189d2d28f736ca994ec0fd9fbca4b5b57/django_alphafilter-1.0-py2.py3-none-any.whl" } ] }