{"id":18551162,"url":"https://github.com/theatlantic/django-nested-admin","last_synced_at":"2025-04-11T06:19:09.108Z","repository":{"id":18154014,"uuid":"21249967","full_name":"theatlantic/django-nested-admin","owner":"theatlantic","description":"Django admin classes that allow for nested inlines","archived":false,"fork":false,"pushed_at":"2024-08-13T02:15:45.000Z","size":3456,"stargazers_count":717,"open_issues_count":52,"forks_count":99,"subscribers_count":44,"default_branch":"master","last_synced_at":"2024-10-30T02:29:40.303Z","etag":null,"topics":["django","django-admin","python"],"latest_commit_sha":null,"homepage":"http://django-nested-admin.readthedocs.org/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theatlantic.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"docs/contributing.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-06-26T18:05:49.000Z","updated_at":"2024-10-29T15:14:27.000Z","dependencies_parsed_at":"2024-06-18T12:36:42.809Z","dependency_job_id":"08ef29e4-a838-4bdb-af1d-bc3382753f06","html_url":"https://github.com/theatlantic/django-nested-admin","commit_stats":{"total_commits":461,"total_committers":26,"mean_commits":17.73076923076923,"dds":"0.40347071583514105","last_synced_commit":"14d40a18e6b4b119779f17fac429181d8a17cf72"},"previous_names":[],"tags_count":93,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theatlantic%2Fdjango-nested-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theatlantic%2Fdjango-nested-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theatlantic%2Fdjango-nested-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theatlantic%2Fdjango-nested-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theatlantic","download_url":"https://codeload.github.com/theatlantic/django-nested-admin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351728,"owners_count":21089333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","django-admin","python"],"created_at":"2024-11-06T21:08:02.516Z","updated_at":"2025-04-11T06:19:09.081Z","avatar_url":"https://github.com/theatlantic.png","language":"Python","readme":"django-nested-admin\n###################\n\n|build_badge| |coverage_badge| |docs_badge|\n\n**django-nested-admin** is a project that makes it possible to nest\nadmin inlines (that is, to define inlines on InlineModelAdmin classes).\nIt is compatible with Django 3.2+ and Python 3.7+ and works with or\nwithout Grappelli. When Grappelli is not installed it allows\nGrappelli-like drag-and-drop functionality.\n\nInstallation\n============\n\nThe recommended way to install django-nested-admin is from\n`PyPI \u003chttps://pypi.python.org/pypi/django-nested-admin\u003e`_::\n\n        pip install django-nested-admin\n\nAlternatively, one can install a development copy of django-nested-admin\nfrom source::\n\n        pip install -e git+git://github.com/theatlantic/django-nested-admin.git#egg=django-nested-admin\n\nIf the source is already checked out, use setuptools to install::\n\n        python setup.py develop\n\nConfiguration\n=============\n\nTo use django-nested-admin in your project, ``\"nested_admin\"`` must be added\nto the ``INSTALLED_APPS`` in your settings:\n\n.. code-block:: python\n\n    INSTALLED_APPS = (\n        # ...\n        'nested_admin',\n    )\n\nIf you’re using `django-grappelli \u003chttps://github.com/sehmaschine/django-grappelli\u003e`_,\nyou will also need to add to include ``nested_admin.urls`` in your urlpatterns:\n\n.. code-block:: python\n\n    urlpatterns = [\n        # ...\n        path('_nested_admin/', include('nested_admin.urls')),\n    ]\n\nExample Usage\n=============\n\nIn order to use ``django-nested-admin``, use the following classes in\nplace of their django admin equivalents:\n\n========================  ======================\n**django.contrib.admin**  **nested_admin**      \n------------------------  ----------------------\nModelAdmin                NestedModelAdmin           \nInlineModelAdmin          NestedInlineModelAdmin\nStackedInline             NestedStackedInline   \nTabularInline             NestedTabularInline\n========================  ======================\n\nThere is also ``nested_admin.NestedGenericStackedInline`` and\n``nested_admin.NestedGenericTabularInline`` which are the nesting-capable\nversions of ``GenericStackedInline`` and ``GenericTabularInline`` in\n``django.contrib.contenttypes.admin``.\n\n.. code-block:: python\n\n    # An example admin.py for a Table of Contents app\n\n    from django.contrib import admin\n    import nested_admin\n\n    from .models import TableOfContents, TocArticle, TocSection\n\n    class TocArticleInline(nested_admin.NestedStackedInline):\n        model = TocArticle\n        sortable_field_name = \"position\"\n\n    class TocSectionInline(nested_admin.NestedStackedInline):\n        model = TocSection\n        sortable_field_name = \"position\"\n        inlines = [TocArticleInline]\n\n    class TableOfContentsAdmin(nested_admin.NestedModelAdmin):\n        inlines = [TocSectionInline]\n\n    admin.site.register(TableOfContents, TableOfContentsAdmin)\n\nTesting\n=======\n\ndjango-nested-admin has fairly extensive test coverage.\nThe best way to run the tests is with `tox \u003chttps://testrun.org/tox/latest/\u003e`_,\nwhich runs the tests against all supported Django installs. To run the tests\nwithin a virtualenv run ``pytest`` from the repository directory. The tests\nrequire a selenium webdriver to be installed. By default the tests run with\nphantomjs, but it is also possible to run the tests with the chrome webdriver\nby passing ``--selenosis-driver=chrome`` to ``pytest`` or, if running with\ntox, running ``tox -- --selenosis-driver=chrome``. See ``pytest --help`` for\na complete list of the options available.\n\nContributing\n============\n\nThis project uses `webpack \u003chttps://webpack.js.org/\u003e`_ for building its\njavascript and css. To install the dependencies for the build process, run\n``npm install`` from the root of the repository. You can then run\n``npm run build`` to rebuild the static files.\n\nLicense\n=======\n\nThe django code is licensed under the `Simplified BSD\nLicense \u003chttp://opensource.org/licenses/BSD-2-Clause\u003e`_. View the\n``LICENSE`` file under the root directory for complete license and\ncopyright information.\n\n.. |build_badge| image:: https://github.com/theatlantic/django-nested-admin/workflows/Test/badge.svg\n    :target: https://github.com/theatlantic/django-nested-admin/actions\n.. |coverage_badge| image:: https://codecov.io/gh/theatlantic/django-nested-admin/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/theatlantic/django-nested-admin\n.. |docs_badge| image:: https://readthedocs.org/projects/django-nested-admin/badge/?version=latest\n    :target: http://django-nested-admin.readthedocs.org/en/latest/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheatlantic%2Fdjango-nested-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheatlantic%2Fdjango-nested-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheatlantic%2Fdjango-nested-admin/lists"}