{ "info": { "author": "Matt Broach, Koty Yell", "author_email": "broach@aya.yale.edu", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "|Build Status| |Coverage Status| |PyPI version|\n\nMerged Inlines\n==============\n\nMerged Inlines is a Django App that allows you to merge multiple inline\nmodels into a single form. This is particularly useful if you need to\nmix the orderings of multiple authors together, so your inlines in the\nAdmin panel can look like:\n\n- inline for Poem 1\n- inline for Poem 2\n- inline for Book 1\n- inline for Poem 3\n- inline for Book 2\n\nInstead of:\n\n- inline for Poem 1\n- inline for Poem 2\n- inline for Poem 3\n\n- inline for Book 1\n- inline for Book 2\n\nInstallation\n------------\n\nInstall using pip:\n\n::\n\n pip install django-merged-inlines\n\nQuick start\n-----------\n\n1. Add \"merged\\_inlines\" to your INSTALLED\\_APPS setting:\n\n::\n\n INSTALLED_APPS = (\n ....\n 'merged_inlines'\n )\n\n2. In the admin.py file for the app you're adding merged inlines to,\n add:\n\n::\n\n from merged_inlines.admin import MergedInlineAdmin\n\n3. Instead of admin.ModelAdmin, make your Admin class a child of\n MergedInlineAdmin, and add your inline classes as you normally would:\n\n::\n\n class MyFirstInline(admin.TabularInline):\n pass\n\n class MySecondInline(admin.TabularInline):\n pass\n\n class MyModelAdmin(MergedInlineAdmin):\n inlines = [MyFirstInline,MySecondInline]\n\n admin.site.register(MyModel,MyModelAdmin)\n\nNote that regardless of the Inline class used (TabularInline or\nStackedInline), Merged Inlines currently only renders as a tabular\ninline.\n\nOptions\n-------\n\nmerged\\_field\\_order\n~~~~~~~~~~~~~~~~~~~~\n\nYou can use merged\\_field\\_order in your MergedInlineAdmin class to set\nthe order of the fields. The list/type must contain all of fields that\nwill be editable in the admin: to exclude fields from the formset, use\nthe builtin ModelAdmin ``exclude`` function.\n\n::\n\n class MyInline(admin.TabularInline):\n exclude = ('my_unwanted_field')\n\n class MyModelAdmin(MergedInlineAdmin):\n inlines = [MyInline]\n\n merged_field_order = ('put_this_field_first','followed_by_this_field','and_then_this_one')\n\nmerged\\_inline\\_order\n~~~~~~~~~~~~~~~~~~~~~\n\nThis option determines what field will be used to sort your merged\ninline models. The shared models must both have the shared field,\notherwise an Exception will be raised. If no field is specified, ``id``\nwill be used.\n\n::\n\n class BookInline(admin.TabularInline):\n model = Book\n\n class PoemInline(admin.TabularInline):\n model = Poem\n\n class AuthorAdmin(MergedInlineAdmin):\n merged_inline_order = 'year'\n\nVersion History\n\n- 1.0 - Added full test coverage. Moved to Django 1.7+ compatibility,\n dropped compatibility with Django <1.7.\n- 0.2 - Fixed ID ordering and js issues, thanks to @kotyy\n- 0.1 - Initial release\n\n.. |Build Status| image:: https://travis-ci.org/MattBroach/Django-Merged-Inlines.svg?branch=master\n :target: https://travis-ci.org/MattBroach/Django-Merged-Inlines\n.. |Coverage Status| image:: https://coveralls.io/repos/github/MattBroach/Django-Merged-Inlines/badge.svg?branch=master\n :target: https://coveralls.io/github/MattBroach/Django-Merged-Inlines?branch=master\n.. |PyPI version| image:: https://badge.fury.io/py/django-merged-inlines.svg\n :target: https://badge.fury.io/py/django-merged-inlines\n\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/MattBroach/Django-Merged-Inlines", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-merged-inlines", "package_url": "https://pypi.org/project/django-merged-inlines/", "platform": "", "project_url": "https://pypi.org/project/django-merged-inlines/", "project_urls": { "Homepage": "https://github.com/MattBroach/Django-Merged-Inlines" }, "release_url": "https://pypi.org/project/django-merged-inlines/1.0.3/", "requires_dist": null, "requires_python": "", "summary": "A Django Admin extension that allows you to mix and reorder multiple inline classes together", "version": "1.0.3" }, "last_serial": 4767054, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "218b9191a460931eabd291645e38506d", "sha256": "f9302a53af6ada2e67e1890b37dd615edce0b80606993c0f14f3e35120dafc92" }, "downloads": -1, "filename": "django-merged-inlines-0.1.tar.gz", "has_sig": false, "md5_digest": "218b9191a460931eabd291645e38506d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7884, "upload_time": "2014-04-30T05:18:08", "url": "https://files.pythonhosted.org/packages/ca/37/471ad6081bc5575156e6648d212874179f95f04ff47268cf94f1fc56e237/django-merged-inlines-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "ce53fd3de069717a0397b32aaddd6bb7", "sha256": "45246880f099ad89f7888e6b77220420f5ae968c37e23702107ee5d31cbab389" }, "downloads": -1, "filename": "django-merged-inlines-0.2.tar.gz", "has_sig": false, "md5_digest": "ce53fd3de069717a0397b32aaddd6bb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10935, "upload_time": "2014-10-27T17:25:04", "url": "https://files.pythonhosted.org/packages/aa/66/095645c5e03d822cd6b5a8ab33d5e934cb694cc09c094bc22e1f4426f051/django-merged-inlines-0.2.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "921d67d2cbaefeb28dd0eb58323e6c8b", "sha256": "c79ca3afafb8e796669917b4359b6036eb6add1b6bed627593ebb1b8b2f7d5f0" }, "downloads": -1, "filename": "django-merged-inlines-1.0.tar.gz", "has_sig": false, "md5_digest": "921d67d2cbaefeb28dd0eb58323e6c8b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9066, "upload_time": "2016-06-13T20:40:36", "url": "https://files.pythonhosted.org/packages/0d/1d/a8d2b5a8be288a3a3b4757be4efa7b6ef77e95cfc278365ab831dfff6486/django-merged-inlines-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "9dafadbb4c81867ffebf3b6629ed17c5", "sha256": "cbad74a828c2d0eaffd078c32db3e5219867b29261a09948e41135fa2a3d22f8" }, "downloads": -1, "filename": "django-merged-inlines-1.0.1.tar.gz", "has_sig": false, "md5_digest": "9dafadbb4c81867ffebf3b6629ed17c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9057, "upload_time": "2016-06-13T20:43:48", "url": "https://files.pythonhosted.org/packages/bb/75/8fbf5ed4954b0464e67d3395ddb938eae0d212693f0c87645f92766197a9/django-merged-inlines-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "08117464bdfad3d1e2f003d9b637ddb5", "sha256": "9ff76ea4d537cccecde564e8c44e96af6b649159b1e2703815ea750e391a5c45" }, "downloads": -1, "filename": "django_merged_inlines-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "08117464bdfad3d1e2f003d9b637ddb5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12260, "upload_time": "2019-02-01T05:54:40", "url": "https://files.pythonhosted.org/packages/f7/1c/29c0e332a4f7bded2b2ae1987fc66b54a46885c0d9cad1258c2495572839/django_merged_inlines-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e495b767d72b8133cab2f87a87000115", "sha256": "51b29263f7dfda0c8d9e8a13a23ef1e744b669b89a831a2941e49807b4314293" }, "downloads": -1, "filename": "django-merged-inlines-1.0.2.tar.gz", "has_sig": false, "md5_digest": "e495b767d72b8133cab2f87a87000115", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9570, "upload_time": "2019-02-01T05:54:42", "url": "https://files.pythonhosted.org/packages/a0/fc/46f978132aeae2596e453027c3575c6068d436650cdf846c71237f0091a2/django-merged-inlines-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "8d7f1c6542d5877f7ac93a85eecac7b5", "sha256": "1fb349d826d6776f830dc6704e2f6b3e9c0d17f1bd436623131c543011202948" }, "downloads": -1, "filename": "django_merged_inlines-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "8d7f1c6542d5877f7ac93a85eecac7b5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13391, "upload_time": "2019-02-01T05:58:42", "url": "https://files.pythonhosted.org/packages/1d/02/2f023ddc39906e59e83decc60a2de1d628ca66693bb27807ceb6ceec7c19/django_merged_inlines-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "76a836b7db454b54095f8c23d9cbc14d", "sha256": "3d7fff5d8c542e09fe893cadff12e74cf155c1841fe68ba860d491d06b036939" }, "downloads": -1, "filename": "django-merged-inlines-1.0.3.tar.gz", "has_sig": false, "md5_digest": "76a836b7db454b54095f8c23d9cbc14d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11068, "upload_time": "2019-02-01T05:58:45", "url": "https://files.pythonhosted.org/packages/a2/96/5627ae6712108771f5f14efc08aae7c308b349c7a276b7b7043260fd6d66/django-merged-inlines-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8d7f1c6542d5877f7ac93a85eecac7b5", "sha256": "1fb349d826d6776f830dc6704e2f6b3e9c0d17f1bd436623131c543011202948" }, "downloads": -1, "filename": "django_merged_inlines-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "8d7f1c6542d5877f7ac93a85eecac7b5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13391, "upload_time": "2019-02-01T05:58:42", "url": "https://files.pythonhosted.org/packages/1d/02/2f023ddc39906e59e83decc60a2de1d628ca66693bb27807ceb6ceec7c19/django_merged_inlines-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "76a836b7db454b54095f8c23d9cbc14d", "sha256": "3d7fff5d8c542e09fe893cadff12e74cf155c1841fe68ba860d491d06b036939" }, "downloads": -1, "filename": "django-merged-inlines-1.0.3.tar.gz", "has_sig": false, "md5_digest": "76a836b7db454b54095f8c23d9cbc14d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11068, "upload_time": "2019-02-01T05:58:45", "url": "https://files.pythonhosted.org/packages/a2/96/5627ae6712108771f5f14efc08aae7c308b349c7a276b7b7043260fd6d66/django-merged-inlines-1.0.3.tar.gz" } ] }