{ "info": { "author": "kpacn", "author_email": "", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "====================\ndjango-related-admin\n====================\n.. image:: https://travis-ci.org/PetrDlouhy/django-related-admin.svg?branch=master\n :target: https://travis-ci.org/PetrDlouhy/django-related-admin\n.. image:: https://coveralls.io/repos/github/PetrDlouhy/django-related-admin/badge.svg?branch=master\n\t :target: https://coveralls.io/github/PetrDlouhy/django-related-admin?branch=master\n.. image:: https://badge.fury.io/py/django-related-admin.svg\n :target: https://badge.fury.io/py/django-related-admin\n\nAllow foreign key attributes in Django admin change list ``list_display`` with '__'\n\nThis is based on `DjangoSnippet 2996 `_ which was made by Kpacn.\n\nInstallation\n------------\n\n1. This library is on PyPI so you can install it with::\n\n pip install django-related-admin\n\nor from github::\n\n pip install git+https://github.com/PetrDlouhy/django-related-admin#egg=django-related-admin\n\n2. Add \"related_admin\" to your INSTALLED_APPS setting like this::\n\n INSTALLED_APPS = (\n ...\n 'related_admin',\n 'django.contrib.admin',\n )\n\nNote: Django-related-admin changes ``change_list.html`` template to disable ``white-space: nowrap;``\ncss class on admin headers to allow long (posibly related) header names to wrap.\nIf you want this behaviour, add the app before ``django.contrib.admin``, otherwise after.\n\n\nUsage\n-----\n\nJust use it instead of model.Admin::\n\n from related_admin import RelatedFieldAdmin\n from related_admin import getter_for_related_field\n\n class FooAdmin(RelatedFieldAdmin):\n # these fields will work automatically (and boolean fields will display an icon):\n list_display = ('address__phone','address__country__country_code','address__foo')\n\n # ... but you can also define them manually if you need to override short_description or boolean parameter:\n address__foo = getter_for_related_field('address__foo', short_description='Custom Name', boolean=True)\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/PetrDlouhy/django-related-admin", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-related-admin", "package_url": "https://pypi.org/project/django-related-admin/", "platform": "", "project_url": "https://pypi.org/project/django-related-admin/", "project_urls": { "Homepage": "https://github.com/PetrDlouhy/django-related-admin" }, "release_url": "https://pypi.org/project/django-related-admin/0.7.0/", "requires_dist": null, "requires_python": "", "summary": "Allow foreign key attributes in list_display with '__'", "version": "0.7.0" }, "last_serial": 4443559, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "fe5c42fe132759a89f7125c0c8850ccd", "sha256": "ae693b39afc9aa9b40d565e0906634867c611e2a5dc83358e466b6cecd3f7863" }, "downloads": -1, "filename": "django-related-admin-0.1.tar.gz", "has_sig": false, "md5_digest": "fe5c42fe132759a89f7125c0c8850ccd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2774, "upload_time": "2015-12-04T12:53:37", "url": "https://files.pythonhosted.org/packages/19/a9/2da636daa3601fd2ff07d4c0bac91627a66428ec71828a2fa15e0e99bf42/django-related-admin-0.1.tar.gz" } ], "0.2": [ { "comment_text": "built for Linux-4.2.0-19-generic-x86_64-with-glibc2.4", "digests": { "md5": "ba094188b89b3ee83d782a318bc231e2", "sha256": "00d8c7eb3b2465c3e46fd0017bd5ea081bf64a6d1ce741260ac71db89b808556" }, "downloads": -1, "filename": "django-related-admin-0.2.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "ba094188b89b3ee83d782a318bc231e2", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 3378, "upload_time": "2015-12-20T01:15:17", "url": "https://files.pythonhosted.org/packages/23/1f/7dc555f2a6f57a51f3ad463be0225eff45c69952d4b577258e1620e3e2a8/django-related-admin-0.2.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "bb2d116475ac6c5cc566701c8425684b", "sha256": "6a1858c5dc7bd2d9c47d639dc3105c88f7f467b817f29553ee3a5030499be278" }, "downloads": -1, "filename": "django-related-admin-0.2.tar.gz", "has_sig": false, "md5_digest": "bb2d116475ac6c5cc566701c8425684b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3101, "upload_time": "2015-12-20T01:15:08", "url": "https://files.pythonhosted.org/packages/68/27/ee7166f72fda6d2a6a96ffeccec349e2bf7cd1429d6de9e5fef48331574f/django-related-admin-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "c8b77454fe912bee62d7de2ea1728de0", "sha256": "c49c929a54ffe775d6f83e081ba6a4369b80725e1ee38dae3248d5d69eb714c9" }, "downloads": -1, "filename": "django-related-admin-0.2.1.tar.gz", "has_sig": false, "md5_digest": "c8b77454fe912bee62d7de2ea1728de0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3135, "upload_time": "2015-12-20T04:15:53", "url": "https://files.pythonhosted.org/packages/f6/a8/06e26e491d72e9392b7a4ef13931ba2056d082b7dbac8f3abbc6570e5bcc/django-related-admin-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "4bd4858794d83b6fde4376b18803f857", "sha256": "e63d1c6c730ccf777f662e09c59b4f600d7594ed1941503daf7375e5d158c124" }, "downloads": -1, "filename": "django-related-admin-0.3.0.tar.gz", "has_sig": false, "md5_digest": "4bd4858794d83b6fde4376b18803f857", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6482, "upload_time": "2015-12-20T11:18:12", "url": "https://files.pythonhosted.org/packages/a5/12/f709eb72b2c29ab7cbb4eff306276cd89777ed23eea4cbdabfdf3b45b237/django-related-admin-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "4c39aa87eb443aeb8b060f0a51dddb7c", "sha256": "d0f75016314ea7a3ba496b8cd9b65c52cb65feb958388d13c8145ef975d8cac9" }, "downloads": -1, "filename": "django-related-admin-0.3.1.tar.gz", "has_sig": false, "md5_digest": "4c39aa87eb443aeb8b060f0a51dddb7c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7226, "upload_time": "2016-06-29T14:17:34", "url": "https://files.pythonhosted.org/packages/8c/90/ff20618946b18d21a1878dc0aa7a3972ec15a2325a5a14cfc63efd6d40d0/django-related-admin-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "d3cf6db0cb64421524b1cc1dd7378def", "sha256": "ee61b3a6edd6d4168b371b48f87a4e25016bcc0f7014934d34a6c543dd0a3964" }, "downloads": -1, "filename": "django-related-admin-0.4.0.tar.gz", "has_sig": false, "md5_digest": "d3cf6db0cb64421524b1cc1dd7378def", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7794, "upload_time": "2016-12-15T06:25:30", "url": "https://files.pythonhosted.org/packages/32/4c/17216fc805f6b89dae0542760191285739da2a70be9fde294d3ca8e9e0ac/django-related-admin-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "a02a4939aa0eb94c33aed60dc5b1199f", "sha256": "41437bd6007bf81055fc5bab9ebfb34fccdb09218b568d967f91e789651a0e1f" }, "downloads": -1, "filename": "django-related-admin-0.5.0.tar.gz", "has_sig": false, "md5_digest": "a02a4939aa0eb94c33aed60dc5b1199f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8387, "upload_time": "2017-04-24T16:40:28", "url": "https://files.pythonhosted.org/packages/1b/41/21a877971cdc8d20d43c11db4595e99d6b1824d0196748e5c04b6b20a2d4/django-related-admin-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "21276680bc0190897168b7514756d87b", "sha256": "0164f9dd58246f088a6ba7478df362a6b9a1ba26c5b00530c40cf918cdd98ede" }, "downloads": -1, "filename": "django-related-admin-0.6.0.tar.gz", "has_sig": false, "md5_digest": "21276680bc0190897168b7514756d87b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8662, "upload_time": "2018-11-02T06:47:10", "url": "https://files.pythonhosted.org/packages/90/7f/220ad8ca6b82835ccf204302da9d96a80e858e16a9a89cd91ec6e8d44480/django-related-admin-0.6.0.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "a17b0d667caf47714d44c8ceb2385925", "sha256": "56888765a3d793cb9d78a435d11c07bfb1302b2d65bb99fc5c0e317e73071668" }, "downloads": -1, "filename": "django-related-admin-0.7.0.tar.gz", "has_sig": false, "md5_digest": "a17b0d667caf47714d44c8ceb2385925", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9172, "upload_time": "2018-11-02T07:51:24", "url": "https://files.pythonhosted.org/packages/d2/71/b4a5e9820e19e6a16b42dc3e41b5e588a07da386e046f10a39298f5bdcf1/django-related-admin-0.7.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a17b0d667caf47714d44c8ceb2385925", "sha256": "56888765a3d793cb9d78a435d11c07bfb1302b2d65bb99fc5c0e317e73071668" }, "downloads": -1, "filename": "django-related-admin-0.7.0.tar.gz", "has_sig": false, "md5_digest": "a17b0d667caf47714d44c8ceb2385925", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9172, "upload_time": "2018-11-02T07:51:24", "url": "https://files.pythonhosted.org/packages/d2/71/b4a5e9820e19e6a16b42dc3e41b5e588a07da386e046f10a39298f5bdcf1/django-related-admin-0.7.0.tar.gz" } ] }