{"id":29705729,"url":"https://github.com/vint21h/django-read-only-admin","last_synced_at":"2025-07-23T15:08:06.119Z","repository":{"id":21362137,"uuid":"92436831","full_name":"vint21h/django-read-only-admin","owner":"vint21h","description":"Really full django read only admin implementation","archived":false,"fork":false,"pushed_at":"2023-09-05T06:49:28.000Z","size":519,"stargazers_count":31,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-20T21:39:51.465Z","etag":null,"topics":["admin","django","django-admin","python","read-only"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vint21h.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":null}},"created_at":"2017-05-25T19:23:19.000Z","updated_at":"2024-03-21T09:25:40.000Z","dependencies_parsed_at":"2022-08-17T22:35:24.413Z","dependency_job_id":null,"html_url":"https://github.com/vint21h/django-read-only-admin","commit_stats":null,"previous_names":[],"tags_count":99,"template":false,"template_full_name":null,"purl":"pkg:github/vint21h/django-read-only-admin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vint21h%2Fdjango-read-only-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vint21h%2Fdjango-read-only-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vint21h%2Fdjango-read-only-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vint21h%2Fdjango-read-only-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vint21h","download_url":"https://codeload.github.com/vint21h/django-read-only-admin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vint21h%2Fdjango-read-only-admin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266699855,"owners_count":23970574,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["admin","django","django-admin","python","read-only"],"created_at":"2025-07-23T15:08:04.658Z","updated_at":"2025-07-23T15:08:06.106Z","avatar_url":"https://github.com/vint21h.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. django-read-only-admin\n.. README.rst\n\n\nA django-read-only-admin documentation\n======================================\n\n|GitHub|_ |Coveralls|_ |pypi-license|_ |pypi-version|_ |pypi-python-version|_ |pypi-django-version|_ |pypi-format|_ |pypi-wheel|_ |pypi-status|_\n\n    *django-read-only-admin is a Django reusable application that fully implement read only admin*\n\n.. contents::\n\nInstallation\n------------\n* Obtain your copy of source code from the git repository: ``$ git clone https://github.com/vint21h/django-read-only-admin.git``. Or download the latest release from https://github.com/vint21h/django-read-only-admin/tags/.\n* Run ``$ python ./setup.py install`` from the repository source tree or the unpacked archive. Or use pip: ``$ pip install django-read-only-admin``.\n\nConfiguration\n-------------\n* Add ``\"read_only_admin\"`` to ``settings.INSTALLED_APPS``.\n\n.. code-block:: python\n\n    # settings.py\n\n    INSTALLED_APPS += [\n        \"read_only_admin\",\n    ]\n\n* Run ``$ python ./manage.py migrate``.\n* Then add ``user/group`` ``change/delete/add/readonly`` model permissions.\n\nSettings\n--------\n``READ_ONLY_ADMIN_PERMISSION_PREFIX``\n    Read-only permission prefix. Defaults to: ``\"readonly\"``.\n\n``READ_ONLY_ADMIN_PERMISSION_NAME_PREFIX``\n    Read-only permission name prefix. Defaults to: ``\"Read only\"``.\n\n``READ_ONLY_ADMIN_EMPTY_ACTIONS``\n    Empty admin actions list (exclude superusers) or just remove delete selected action. Defaults to: ``True``.\n\nUsage\n-----\nJust inherit your custom Django admin class from ``read_only_admin.admin.ReadonlyAdmin``.\n\n.. code-block:: python\n\n    # admin.py\n\n    from read_only_admin.admin import ReadonlyAdmin\n\n\n    class MyCustomAdmin(ReadonlyAdmin):\n\n        ...\n\nAlso tabular and stacked inlines are supported.\n\n.. code-block:: python\n\n    # admin.py\n\n    from read_only_admin.admin import (\n        ReadonlyStackedInline,\n        ReadonlyTabularInline,\n    )\n\n\n    class MyCustomTabularInline(ReadonlyTabularInline):\n\n        model: Type[Model] = MyModel\n        extra: int = 0\n\n\n    class MyCustomStackedInline(ReadonlyStackedInline):\n\n        model: Type[Model] = MyModel\n        extra: int = 0\n\nIf you use ``list_editable`` in your custom admin classes, copy ``read_only_admin/templates/admin/pagination.html`` to your project ``templates/admin`` directory.\n\nContributing\n------------\n1. `Fork it \u003chttps://github.com/vint21h/django-read-only-admin/\u003e`_\n2. Install `GNU Make \u003chttps://www.gnu.org/software/make/\u003e`_\n3. Install and configure `pyenv \u003chttps://github.com/pyenv/pyenv/\u003e`_ and `pyenv-virtualenv plugin \u003chttps://github.com/pyenv/pyenv-virtualenv/\u003e`_\n4. Install and configure `direnv \u003chttps://github.com/direnv/direnv/\u003e`_\n5. Create environment config from example\n\n.. code-block:: bash\n\n    cp .env.example .env\n\n6. Install development dependencies:\n\n.. code-block:: bash\n\n    make install\n\n7. Create your fix/feature branch:\n\n.. code-block:: bash\n\n    git checkout -b my-new-fix-or-feature\n\n8. Check code style and moreover:\n\n.. code-block:: bash\n\n    make check\n\n9. Run tests:\n\n.. code-block:: bash\n\n    make test\n\n10. Push to the branch:\n\n.. code-block:: bash\n\n    git push origin my-new-fix-or-feature\n\n11. `Create a new Pull Request \u003chttps://github.com/vint21h/django-read-only-admin/compare/\u003e`_\n\nLicensing\n---------\ndjango-read-only-admin uses the MIT license. Please check the MIT-LICENSE file for more details.\n\nSome part of code fairly stolen from teh internets with reference to the source. So, if you author of this code, please contact me.\n\nContacts\n--------\n**Project Website**: https://github.com/vint21h/django-read-only-admin/\n\n**Author**: Alexei Andrushievich \u003cvint21h@vint21h.pp.ua\u003e\n\nFor other authors list see AUTHORS file.\n\n.. |GitHub| image:: https://github.com/vint21h/django-read-only-admin/workflows/build/badge.svg\n    :alt: GitHub\n.. |Coveralls| image:: https://coveralls.io/repos/github/vint21h/django-read-only-admin/badge.svg?branch=master\n    :alt: Coveralls\n.. |pypi-license| image:: https://img.shields.io/pypi/l/django-read-only-admin\n    :alt: License\n.. |pypi-version| image:: https://img.shields.io/pypi/v/django-read-only-admin\n    :alt: Version\n.. |pypi-django-version| image:: https://img.shields.io/pypi/djversions/django-read-only-admin\n    :alt: Supported Django version\n.. |pypi-python-version| image:: https://img.shields.io/pypi/pyversions/django-read-only-admin\n    :alt: Supported Python version\n.. |pypi-format| image:: https://img.shields.io/pypi/format/django-read-only-admin\n    :alt: Package format\n.. |pypi-wheel| image:: https://img.shields.io/pypi/wheel/django-read-only-admin\n    :alt: Python wheel support\n.. |pypi-status| image:: https://img.shields.io/pypi/status/django-read-only-admin\n    :alt: Package status\n.. _GitHub: https://github.com/vint21h/django-read-only-admin/actions/\n.. _Coveralls: https://coveralls.io/github/vint21h/django-read-only-admin?branch=master\n.. _pypi-license: https://pypi.org/project/django-read-only-admin/\n.. _pypi-version: https://pypi.org/project/django-read-only-admin/\n.. _pypi-django-version: https://pypi.org/project/django-read-only-admin/\n.. _pypi-python-version: https://pypi.org/project/django-read-only-admin/\n.. _pypi-format: https://pypi.org/project/django-read-only-admin/\n.. _pypi-wheel: https://pypi.org/project/django-read-only-admin/\n.. _pypi-status: https://pypi.org/project/django-read-only-admin/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvint21h%2Fdjango-read-only-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvint21h%2Fdjango-read-only-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvint21h%2Fdjango-read-only-admin/lists"}