{ "info": { "author": "Alain Trinh", "author_email": "i.am@soaa.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# django-nested-inlines\r\n\r\n##I am not the author, I am simply publishing Alain Trinh's work, with SilverFix'es bugfixes and improvements.\r\n\r\n## *SilverFix'es bugfix & changes*\r\n- [inlines.js] **Fixed severe bug with number of TOTAL_FORMS when adding a new nested**\r\n- [tabular.html] Fixed look 'n feel of the nested table (dynamic colspan handling)\r\n- [admin.py] Fixed exception using it with a no-deletable inline\r\n- [project structure] Deleted inlines.min.js\r\n- [admin.py] NestedModelAdmin was pointing to wrong js filename\r\n- [admin.py] Fixed a bug that would be skip any custom validation in clean() method\r\n\r\n## Overview\r\n\r\n[Django issue #9025](http://code.djangoproject.com/ticket/9025)\r\n\r\nPatches have been submitted, and repositories forked, but no one likes to use\r\neither one. Now, nested inlines are available in an easy-to-install package.\r\n\r\n### Issues\r\n\r\nThe Javascript portion of this app is currently buggy. The Python portion\r\nshould be solid. Please test and file issues and pull requests to improve\r\nit!\r\n\r\n## Installation\r\n\r\n`pip install django-nested-inlines`\r\n\r\n## Usage\r\n\r\n`nested_inlines.admin` contains three `ModelAdmin` subclasses to enable\r\nnested inline support: `NestedModelAdmin`, `NestedStackedInline`, and\r\n`NestedTabularInline`. To use them:\r\n\r\n1. Add `nested_inlines` to your `INSTALLED_APPS` **before**\r\n`django.contrib.admin`. This is because this app overrides certain admin\r\ntemplates and media.\r\n2. Import `NestedModelAdmin`, `NestedStackedInline`, and `NestedTabularInline`\r\nwherever you want to use nested inlines.\r\n3. On admin classes that will contain nested inlines, use `NestedModelAdmin`\r\nrather than the standard `ModelAdmin`.\r\n4. On inline classes, use `Nested` versions instead of the standard ones.\r\n5. Add an `inlines = [MyInline,]` attribute to your inlines and watch the\r\nmagic happen.\r\n\r\n## Example\r\n\r\n\tfrom django.contrib import admin\r\n\tfrom nested_inlines.admin import NestedModelAdmin, NestedStackedInline, NestedTabularInline\r\n\tfrom models import A, B, C\r\n\t\r\n\tclass MyNestedInline(NestedTabularInline):\r\n\t\tmodel = C\r\n\t\r\n\tclass MyInline(NestedStackedInline):\r\n\t\tmodel = B\r\n\t\tinlines = [MyNestedInline,]\r\n\t\r\n\tclass MyAdmin(NestedModelAdmin):\r\n\t\tinlines = [MyInline,]\r\n\t\r\n\tadmin.site.register(A, MyAdmin)\r\n\r\n## Credits\r\n\r\nThis package is mainly the work of other developers. I've only taken their\r\npatches and packaged them nicely for ease of use. Credit goes to:\r\n\r\n- Gargamel for providing the base patch on the Django ticket.\r\n- Stefan Klug for providing a fork with the patch applied, and for bugfixes.\r\n\r\nSee [Stefan Klug's repository](https://github.com/stefanklug/django/tree/nested-inline-support-1.5.x).", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/phySi0/django-nested-inlines/archive/0.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/phySi0/django-nested-inlines", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-nested-inlines", "package_url": "https://pypi.org/project/django-nested-inlines/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-nested-inlines/", "project_urls": { "Download": "https://github.com/phySi0/django-nested-inlines/archive/0.1.tar.gz", "Homepage": "https://github.com/phySi0/django-nested-inlines" }, "release_url": "https://pypi.org/project/django-nested-inlines/0.1/", "requires_dist": null, "requires_python": null, "summary": "Adds nested inline support in Django admin", "version": "0.1" }, "last_serial": 1022694, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "19f50a80e2ab7beb39866cfbcbf4dec9", "sha256": "c3a1ba86ff00aa175b8d4b703f895523cfebda6756f5583a33ec2e82a7d7cd68" }, "downloads": -1, "filename": "django-nested-inlines-0.1.tar.gz", "has_sig": false, "md5_digest": "19f50a80e2ab7beb39866cfbcbf4dec9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8031, "upload_time": "2014-03-07T20:13:24", "url": "https://files.pythonhosted.org/packages/a2/5e/31d3871a49ed098c9c55d93c26d6717d8d0c8b225d3906015afe93f7fb35/django-nested-inlines-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "19f50a80e2ab7beb39866cfbcbf4dec9", "sha256": "c3a1ba86ff00aa175b8d4b703f895523cfebda6756f5583a33ec2e82a7d7cd68" }, "downloads": -1, "filename": "django-nested-inlines-0.1.tar.gz", "has_sig": false, "md5_digest": "19f50a80e2ab7beb39866cfbcbf4dec9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8031, "upload_time": "2014-03-07T20:13:24", "url": "https://files.pythonhosted.org/packages/a2/5e/31d3871a49ed098c9c55d93c26d6717d8d0c8b225d3906015afe93f7fb35/django-nested-inlines-0.1.tar.gz" } ] }