{ "info": { "author": "Sander van Leeuwen", "author_email": "replytosander@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "=========================================\ndjango-sortedm2m-filter-horizontal-widget\n=========================================\n\n``sortedm2m-filter-horizontal-widget`` is an admin widget for Gregor M\u00fclleggers excellent django-sortedm2m_ library.\n\n.. _django-sortedm2m: http://github.com/gregmuellegger/django-sortedm2m\n\nThis allows for a familiar filter horizontal widget.\n\n.. figure:: https://image.ibb.co/fYO8On/Screen_Shot_2018_05_07_at_9_39_30_AM.png\n\nInstallation\n============\n\n``pip install django-sortedm2m-filter-horizontal-widget``\n\nWhat version do I need?\n=======================\n\n+------------+------------+\n| Django | Install |\n+============+============+\n| < 1.8 | 0.2 |\n+------------+------------+\n| 1.8 | 1.1 |\n+------------+------------+\n| >= 1.9 | 1.2.1 |\n+------------+------------+\n| >= 2.0 | latest |\n+------------+------------+\n\nUsage\n=====\n\nAdd ``sortedm2m_filter_horizontal_widget`` to your ``INSTALLED_APPS``. (needed for static files)\n\nIn your ``ModelAdmin`` add the following function to override the default widget. ::\n\n from sortedm2m_filter_horizontal_widget.forms import SortedFilteredSelectMultiple\n\n class MyModelAdmin(admin.ModelAdmin):\n # ...\n\n def formfield_for_manytomany(self, db_field, request=None, **kwargs):\n if db_field.name == 'your_sortedm2m_field_name':\n kwargs['widget'] = SortedFilteredSelectMultiple()\n return super(MyModelAdmin, self).formfield_for_manytomany(db_field, request, **kwargs)\n\nTodo\n====\n\n* Automatically assign widget if field is specified in ModelAdmin's ``filter_horizontal``.\n* Add tests\n\n\nChangelog\n=========\n1.3.2:\n Fix incorrect class name\n\n1.3.1:\n Fix duplicate \"Add another\" button in stacked inline (#12)\n\n1.3:\n Handle responsive css introduced in django 2.0\n Handle removal of old JS cross-browser utilities introduced in django 2.0\n\n1.2.1:\n Add workaround to have verbose_name reference (#1)\n Fix Select and Clear All button (#2)\n Fix translation for Clear All button (#3)\n\n1.2:\n Implement new admin style introduced in Django 1.9\n Remove all images since buttons are now handled with css\n Get button active and hover states working\n Add example project\n\n1.1:\n Use admin_prefix to find image, in case user changes STATIC_URL setting\n Add version requirements per Django version\n\n1.0:\n Fixed bugs with popup closing.\n Added support for Django 1.10+", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/svleeuwen/sortedm2m-filter-horizontal-widget/archive/1.3.2.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/svleeuwen/sortedm2m-filter-horizontal-widget", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-sortedm2m-filter-horizontal-widget", "package_url": "https://pypi.org/project/django-sortedm2m-filter-horizontal-widget/", "platform": "", "project_url": "https://pypi.org/project/django-sortedm2m-filter-horizontal-widget/", "project_urls": { "Download": "https://github.com/svleeuwen/sortedm2m-filter-horizontal-widget/archive/1.3.2.tar.gz", "Homepage": "https://github.com/svleeuwen/sortedm2m-filter-horizontal-widget" }, "release_url": "https://pypi.org/project/django-sortedm2m-filter-horizontal-widget/1.3.2/", "requires_dist": null, "requires_python": "", "summary": "Horizontal filter widget for django-sortedm2m", "version": "1.3.2" }, "last_serial": 3840254, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "d8f87e2cb60c62836434848a27637a9a", "sha256": "33fc2f542cc5a79d38136e86f22e36af2ca7869c3435f99204ba359c8ce0346b" }, "downloads": -1, "filename": "django_sortedm2m_filter_horizontal_widget-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d8f87e2cb60c62836434848a27637a9a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13162, "upload_time": "2015-08-03T08:55:52", "url": "https://files.pythonhosted.org/packages/c2/bb/3f12cfa24d0597f3e583eb3beaac4e4be5a5cd519376a5766f9ad6051d2e/django_sortedm2m_filter_horizontal_widget-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8359ebf8619337d8a0d672735001e37b", "sha256": "45a04a956835cf22c2136a8adbcddb1ad4ce39d026e15edb1e2b7321e4cd823b" }, "downloads": -1, "filename": "django-sortedm2m-filter-horizontal-widget-0.1.tar.gz", "has_sig": false, "md5_digest": "8359ebf8619337d8a0d672735001e37b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10840, "upload_time": "2015-08-03T08:55:48", "url": "https://files.pythonhosted.org/packages/1a/9e/8036aaa6904b8eec877a120a19297e842e331e35052f8cfb80b5f502c53f/django-sortedm2m-filter-horizontal-widget-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "8e7ab4e5146c7106a432755e9cd71821", "sha256": "eed5467ede6ba01747a7181610e4ab464979c165234d7465781358ac1d6129f8" }, "downloads": -1, "filename": "django-sortedm2m-filter-horizontal-widget-0.2.tar.gz", "has_sig": false, "md5_digest": "8e7ab4e5146c7106a432755e9cd71821", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10820, "upload_time": "2017-01-02T14:59:25", "url": "https://files.pythonhosted.org/packages/c1/fa/c2bf7b97682d87eb7b6a2ed4e9b54dd035d0d867e2125c31f8105531f20c/django-sortedm2m-filter-horizontal-widget-0.2.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "bd67ce9b6fac4704207bb0642ec801ca", "sha256": "2093ca582dea79412a67b4aac15b217bcb67006c96e648e31a16a588d33a8261" }, "downloads": -1, "filename": "django-sortedm2m-filter-horizontal-widget-1.1.tar.gz", "has_sig": false, "md5_digest": "bd67ce9b6fac4704207bb0642ec801ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 42551, "upload_time": "2017-05-01T15:16:32", "url": "https://files.pythonhosted.org/packages/f1/ce/3cf15361d2da5b0b5a5a7d591ae9d6ee4efe1ab3f238863846ba08327191/django-sortedm2m-filter-horizontal-widget-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "933e86f755f65769053215bf77c4cce7", "sha256": "837960307ba03b1f3f674cf7c3625ecbc3a2b56aa7d8aedca393cbd1bd9963b1" }, "downloads": -1, "filename": "django-sortedm2m-filter-horizontal-widget-1.2.tar.gz", "has_sig": false, "md5_digest": "933e86f755f65769053215bf77c4cce7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 40743, "upload_time": "2017-05-02T08:13:09", "url": "https://files.pythonhosted.org/packages/99/14/1ceee1f4a13f9a06626dcc23c813072ff1e253b7f319c80445fccc954f2f/django-sortedm2m-filter-horizontal-widget-1.2.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "3b317564eeb7b28b10816bb1e5716d43", "sha256": "b6bc774572e0fa4c0219a684762a67848f97ba602626335ef408ba66caf932c1" }, "downloads": -1, "filename": "django-sortedm2m-filter-horizontal-widget-1.2.1.tar.gz", "has_sig": false, "md5_digest": "3b317564eeb7b28b10816bb1e5716d43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 40952, "upload_time": "2018-05-07T02:37:49", "url": "https://files.pythonhosted.org/packages/85/49/4a94b4c93211f2a071a444f0378523b1e81075d0da8d7553e7c902c51c7b/django-sortedm2m-filter-horizontal-widget-1.2.1.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "d9c79c99bae1167f2781e367ed818fe3", "sha256": "5c3138cbf485d21082c3a27ab570f99a6a951cb3699ff9e4860c05361e7a693e" }, "downloads": -1, "filename": "django-sortedm2m-filter-horizontal-widget-1.3.tar.gz", "has_sig": false, "md5_digest": "d9c79c99bae1167f2781e367ed818fe3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41214, "upload_time": "2018-05-07T05:58:45", "url": "https://files.pythonhosted.org/packages/56/fc/88b511ac1990b0ca37b44f9419723d29afe6add01f772a46971a4f5e3e60/django-sortedm2m-filter-horizontal-widget-1.3.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "607308fb7e4d9bf5e445e7c26db2346d", "sha256": "4c74952ff8062bbf1f5f7e0ee22f6a8b288d47c8f2d3f835709e071c67a56fbd" }, "downloads": -1, "filename": "django-sortedm2m-filter-horizontal-widget-1.3.1.tar.gz", "has_sig": false, "md5_digest": "607308fb7e4d9bf5e445e7c26db2346d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41125, "upload_time": "2018-05-07T08:46:11", "url": "https://files.pythonhosted.org/packages/a5/67/7c1c885e30cd123b70e06ad2de2ab3721c251f3106833d44e45705c8c3be/django-sortedm2m-filter-horizontal-widget-1.3.1.tar.gz" } ], "1.3.2": [ { "comment_text": "", "digests": { "md5": "2886c2d67f381246b63bf1229f2566ad", "sha256": "ca8425e05a87bffac5b4e64adfb2cee91c96e074d66fe28ab263ad21f4687269" }, "downloads": -1, "filename": "django-sortedm2m-filter-horizontal-widget-1.3.2.tar.gz", "has_sig": false, "md5_digest": "2886c2d67f381246b63bf1229f2566ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41124, "upload_time": "2018-05-07T09:02:02", "url": "https://files.pythonhosted.org/packages/eb/f3/8d2ee3f866a9b04959aafd96d731506c2ad433c48f2ca99f6f5602905f5a/django-sortedm2m-filter-horizontal-widget-1.3.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2886c2d67f381246b63bf1229f2566ad", "sha256": "ca8425e05a87bffac5b4e64adfb2cee91c96e074d66fe28ab263ad21f4687269" }, "downloads": -1, "filename": "django-sortedm2m-filter-horizontal-widget-1.3.2.tar.gz", "has_sig": false, "md5_digest": "2886c2d67f381246b63bf1229f2566ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41124, "upload_time": "2018-05-07T09:02:02", "url": "https://files.pythonhosted.org/packages/eb/f3/8d2ee3f866a9b04959aafd96d731506c2ad433c48f2ca99f6f5602905f5a/django-sortedm2m-filter-horizontal-widget-1.3.2.tar.gz" } ] }