{ "info": { "author": "Guillaume Pousseo", "author_email": "guillaumepousseo@revsquare.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5" ], "description": ".. image:: https://badge.fury.io/py/django-tabbed-admin.png\n :target: http://badge.fury.io/py/django-tabbed-admin\n :alt: PyPI version\n :height: 18px\n\n.. image:: https://travis-ci.org/omji/django-tabbed-admin.png?branch=master\n :target: https://travis-ci.org/omji/django-tabbed-admin\n :alt: build-status\n :height: 18px\n\n.. image:: https://coveralls.io/repos/omji/django-tabbed-admin/badge.png?branch=master\n :target: https://coveralls.io/r/omji/django-tabbed-admin\n :alt: coverage\n :height: 18px\n\n###################\nDjango tabbed admin\n###################\n\nSimple library to easilly add tabs to admin forms. It also allows users to re-order inlines and fieldsets.\nDjango tabbed admin is compatible with django-grappelli and django-gipsy.\n\n.. image:: https://box.everhelper.me/attachment/256054/rSqCFM20d245qFlG5z64EgiOVpeuTU3P/341506-h1u4JrpaUan0tG2e/screen.png\n :height: 400px\n :width: 800 px\n\nGrappelli:\n\n.. image:: https://box.everhelper.me/attachment/256057/rSqCFM20d245qFlG5z64EgiOVpeuTU3P/341506-kQnZXKsO0pfrU4cI/screen.png\n :height: 400px\n :width: 800 px\n\n*******\nInstall\n*******\n\nIt is strongly recommanded to install this theme from GIT with PIP onto you project virtualenv.\n\nFrom PyPi\n\n.. code-block:: shell-session\n\n pip install django-tabbed-admin\n\nFrom Github\n\n.. code-block:: shell-session\n\n https://github.com/omji/django-tabbed-admin#egg=tabbed_admin\n\n\n*****\nsetup\n*****\n\nSimply add the app in your installed apps list in settings.py\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...\n 'tabbed_admin'\n ...\n )\n\nDjango-tabbed-admin by default requires Jquery UI tabs plugin in order to work. It is packaged with the static files required to make it funcitonnal, however, they are not activated by default to avoid a conflict with other libraries.\n\nIn order to activate the Jquery UI statics, add the following line to the project settings:\n\n.. code-block:: python\n\n TABBED_ADMIN_USE_JQUERY_UI = True\n\n\n********************\nConfigure admin tabs\n********************\n\nIn order to add tabs to a model admin, it should inherit from tabbed_admin.TabbedModelAdmin and contain a tabs attribute.\nThe tab attribute configuration tries to remain similar to the fieldsets and inlines setup logic.\n\nBasically, a tuple can be created for each tab exactely the same way as for fieldsets, except that inlines can be added anywhere in between.\n\n.. code-block:: python\n\n tab_overview = (\n (None, {\n 'fields': ('name', 'bio', 'style')\n }),\n MusicianInline,\n ('Contact', {\n 'fields': ('agent', 'phone', 'email')\n })\n )\n\nThen each tuple have to be passed to a *tabs* attribute prefixed by the verbose name to display within the tab:\n\n.. code-block:: python\n\n tabs = [\n ('Overview', tab_overview),\n ('Albums', tab_album)\n ]\n\n\nA full example would give:\n\n.. code-block:: python\n\n from django.contrib import admin\n\n from tabbed_admin import TabbedModelAdmin\n from .models import Band, Musician, Album\n\n\n class MusicianInline(admin.StackedInline):\n model = Musician\n extra = 1\n\n\n class AlbumInline(admin.TabularInline):\n model = Album\n extra = 1\n\n\n @admin.register(Band)\n class BandAdmin(TabbedModelAdmin):\n model = Band\n\n tab_overview = (\n (None, {\n 'fields': ('name', 'bio', 'style')\n }),\n MusicianInline,\n ('Contact', {\n 'fields': ('agent', 'phone', 'email')\n })\n )\n tab_album = (\n AlbumInline,\n )\n tabs = [\n ('Overview', tab_overview),\n ('Albums', tab_album)\n ]\n\n**************************\nConfigure tabs dynamically\n**************************\n\nBe warned that the tabs will completely reset the fieldsets and inlines attributes in order to avoid conflicts during the form saving. Both attributes are overwritten with the entries passed to the tabs attribute. For the same reasons, it is highly recommanded not to overwrite get_fieldsets or get_inlines.\n\nYou can pass and modify the tabs dynamically the same way you would do for fieldsets or inlines.\n\n.. code-block:: python\n\n def get_tabs(self, request, obj=None):\n tabs = self.tabs\n if obj is not None:\n tab_overview = self.tab_overview + ('Social', {\n 'fields': ('website', 'twitter', 'facebook')\n })\n tab_ressources = self.tab_ressources + (InterviewInline, )\n tabs = [\n ('Overview', tab_overview),\n ('Ressources', tab_ressources)\n ]\n self.tabs = tabs\n return super(BandAdmin, self).get_tabs(request, obj)\n\n\n********************\nChange the jquery ui\n********************\n\nYou can change the jquery ui css and js by either overriding the media in the\nadmin class\n\n.. code-block:: python\n\n class Media:\n css = {\n 'all': ('css/jquery-ui.theme.min.css',)\n }\n\nor by changing the the following settings,\n\n`TABBED_ADMIN_JQUERY_UI_CSS` and `TABBED_ADMIN_JQUERY_UI_JS`\n\n.. code-block:: python\n\n TABBED_ADMIN_JQUERY_UI_CSS = 'static/css/my-custom-jquery-ui.css'\n TABBED_ADMIN_JQUERY_UI_JS = 'static/js/my-custom-jquery-ui.js'\n\n\nContribution\n************\n\nPlease feel free to contribute. Any help and advices are much appreciated.\nYou will find an example application to run and develop the library easily.\n\n\n*****\nLINKS\n*****\n\nDevelopment:\n https://github.com/omji/django-tabbed-admin\n\nPackage:\n https://pypi.python.org/pypi/django-tabbed-admin\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.revsquare.com", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "django-tabbed-admin", "package_url": "https://pypi.org/project/django-tabbed-admin/", "platform": "OS Independent", "project_url": "https://pypi.org/project/django-tabbed-admin/", "project_urls": { "Homepage": "http://www.revsquare.com" }, "release_url": "https://pypi.org/project/django-tabbed-admin/1.0.4/", "requires_dist": null, "requires_python": "", "summary": "Easily add tabs to django admin forms.", "version": "1.0.4" }, "last_serial": 4028925, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "cc91a346ebe62ce229f89f94833b38d0", "sha256": "89946b4d95b004bfe1e20b9d741507399b0bee1f83ae9914509321df6503640b" }, "downloads": -1, "filename": "django-tabbed-admin-0.0.1.tar.gz", "has_sig": false, "md5_digest": "cc91a346ebe62ce229f89f94833b38d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20428, "upload_time": "2015-07-28T16:24:51", "url": "https://files.pythonhosted.org/packages/68/f1/bf678626eac19504188cffabd5330f67dbce3a33d4071c951135d25058d0/django-tabbed-admin-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "d3abac25334b989158ccfaa353148e8d", "sha256": "32a65d6e00877f9e4e0bc54f6c03e3a1dbe6ebaf1878cb5d9ee230077ea20ec5" }, "downloads": -1, "filename": "django-tabbed-admin-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d3abac25334b989158ccfaa353148e8d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20489, "upload_time": "2015-07-28T16:30:32", "url": "https://files.pythonhosted.org/packages/d6/24/54a86fed30faef0ebedc0c7c052b81d9ef9fdd9a871e22264256072c8c89/django-tabbed-admin-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "a98be71a3ec4e0a7869fc61499d4525a", "sha256": "d9f3e06e2d2ce6e44f059c6fb3f5652c02cd1b7d114aefb7249a77894bc66718" }, "downloads": -1, "filename": "django-tabbed-admin-0.0.3.tar.gz", "has_sig": false, "md5_digest": "a98be71a3ec4e0a7869fc61499d4525a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 42950, "upload_time": "2015-07-29T04:13:28", "url": "https://files.pythonhosted.org/packages/6e/f9/48c348d20ef9159266782c27671f780d4cbcbf23e0ae053065f591694ca8/django-tabbed-admin-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "3b7dbf8d3d64b40a03f27f64b452e8b3", "sha256": "32236fc1f3b29a2a7a779abeaa16ecedb69609ccc5655738f2900b1a7fd40bdb" }, "downloads": -1, "filename": "django-tabbed-admin-0.0.4.tar.gz", "has_sig": false, "md5_digest": "3b7dbf8d3d64b40a03f27f64b452e8b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 42961, "upload_time": "2015-09-07T05:31:11", "url": "https://files.pythonhosted.org/packages/47/6a/ea249c9365c75d7b1c456307e423b66e9cdce5f9aa5ea8fc18d62c7078a3/django-tabbed-admin-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "6f3d15d1bc04f9d836dfb882c343b01d", "sha256": "70d24602bf165af35df3ed9a7087ff842f8bdc4dfe3669c4c05854037bf8b30f" }, "downloads": -1, "filename": "django-tabbed-admin-0.0.5.tar.gz", "has_sig": false, "md5_digest": "6f3d15d1bc04f9d836dfb882c343b01d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43093, "upload_time": "2015-10-07T08:19:19", "url": "https://files.pythonhosted.org/packages/5b/b9/dbe370c66a9c32e9909e3fc967124452a84e7d101f724e755e9c8df13cab/django-tabbed-admin-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "bbd0c7168ebfbc5baf88d74a5da1bce6", "sha256": "c8efba8eae3001c3359738f76a366c3642e9df26a6f9b4d5b0d8f05f1307536f" }, "downloads": -1, "filename": "django-tabbed-admin-0.0.6.tar.gz", "has_sig": false, "md5_digest": "bbd0c7168ebfbc5baf88d74a5da1bce6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43768, "upload_time": "2016-08-09T09:35:08", "url": "https://files.pythonhosted.org/packages/8c/41/60df701a38fd535bc41605fe7f3fb34f9eb11247537bb4bbacc176fe90e8/django-tabbed-admin-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "227ec474bf6626cfb00c5315a6a6b8d1", "sha256": "aadcee2358cb41fdbf4d5690c8cf6fbb9577197bd1c3e6fffe1451f5de59b294" }, "downloads": -1, "filename": "django-tabbed-admin-0.0.7.tar.gz", "has_sig": false, "md5_digest": "227ec474bf6626cfb00c5315a6a6b8d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43788, "upload_time": "2016-08-09T09:54:11", "url": "https://files.pythonhosted.org/packages/36/2d/5aea47bfac3c3f3c06e90d1cc230cc3508bbfe55bd421e62c95c54405355/django-tabbed-admin-0.0.7.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "9346be8616c0814c78ca0ce0728353e8", "sha256": "067c16b865a44813ca938e4ff5308011ab4bd96d0439f88d10d904d81618da40" }, "downloads": -1, "filename": "django-tabbed-admin-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9346be8616c0814c78ca0ce0728353e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43775, "upload_time": "2016-08-09T10:53:14", "url": "https://files.pythonhosted.org/packages/eb/d0/4579bfa9d66f81caa52eddd365ddcdd568dde6ab8bee6ad7125404d4cfde/django-tabbed-admin-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "6db27d3f0334145a0c1c3426c5699439", "sha256": "b56088ab85d08b34e72636c8190a7717c8d5f8df3d77d68ac357c757e9b226a3" }, "downloads": -1, "filename": "django-tabbed-admin-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6db27d3f0334145a0c1c3426c5699439", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43790, "upload_time": "2016-09-20T10:51:25", "url": "https://files.pythonhosted.org/packages/7e/14/827a6fc12b1e86c91baa281d6801bb29ad11b2d406a92cbb79e72ae31ba6/django-tabbed-admin-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "f96b0568ba6909407d9ca7b348bc1378", "sha256": "85b4f12ec88b3303cbbe573e3cbcdfecb0dedf76f4c7d394409d6d9d3fa4077c" }, "downloads": -1, "filename": "django-tabbed-admin-1.0.2.tar.gz", "has_sig": false, "md5_digest": "f96b0568ba6909407d9ca7b348bc1378", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 73237, "upload_time": "2017-07-21T11:05:56", "url": "https://files.pythonhosted.org/packages/eb/48/965835614d2b34be14e94f13199ffa28826004cdbf7c1d1a5afa08755801/django-tabbed-admin-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "9246b6ba2e9cfe2c10853c513d8eac8d", "sha256": "3ebe9727c4fe7cc12384816cad1fad6d3c3d51898459ab77db02fffb15bb0a10" }, "downloads": -1, "filename": "django-tabbed-admin-1.0.3.tar.gz", "has_sig": false, "md5_digest": "9246b6ba2e9cfe2c10853c513d8eac8d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 73271, "upload_time": "2017-12-11T14:48:27", "url": "https://files.pythonhosted.org/packages/16/58/c4e91e617ab2fb369c679d96a6e98f4a4931ddc1f542e859558c30d44f6e/django-tabbed-admin-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "03dff5452d220dd2e2060b0d5cd6da65", "sha256": "416044c8ba1ad5359a947482005dcc7b4c5b809af8add97c398895a48baec334" }, "downloads": -1, "filename": "django-tabbed-admin-1.0.4.tar.gz", "has_sig": false, "md5_digest": "03dff5452d220dd2e2060b0d5cd6da65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 73199, "upload_time": "2018-07-04T05:59:31", "url": "https://files.pythonhosted.org/packages/f0/1a/e23ecbbf8e89373958cac8eb86aa95fdfda86e47c0fef877a65f58ab7ac7/django-tabbed-admin-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "03dff5452d220dd2e2060b0d5cd6da65", "sha256": "416044c8ba1ad5359a947482005dcc7b4c5b809af8add97c398895a48baec334" }, "downloads": -1, "filename": "django-tabbed-admin-1.0.4.tar.gz", "has_sig": false, "md5_digest": "03dff5452d220dd2e2060b0d5cd6da65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 73199, "upload_time": "2018-07-04T05:59:31", "url": "https://files.pythonhosted.org/packages/f0/1a/e23ecbbf8e89373958cac8eb86aa95fdfda86e47c0fef877a65f58ab7ac7/django-tabbed-admin-1.0.4.tar.gz" } ] }