Skip to main content

Really full Django read only admin implementation

Project description

GitHub Coveralls License Version Supported Python version Supported Django version Package format Python wheel support Package status

django-read-only-admin is a Django reusable application that fully implement read only admin


  • Obtain your copy of source code from the git repository: $ git clone Or download the latest release from
  • Run $ python ./ install from the repository source tree or the unpacked archive. Or use pip: $ pip install django-read-only-admin.


  • Add "read_only_admin" to settings.INSTALLED_APPS.

  • Run $ python ./ migrate.
  • Then add user/group change/delete/add/readonly model permissions.


Read-only permission prefix. Defaults to: "readonly".
Read-only permission name prefix. Defaults to: "Read only".
Empty admin actions list (exclude superusers) or just remove delete selected action. Defaults to: True.


Just inherit your custom Django admin class from read_only_admin.admin.ReadonlyAdmin.


from read_only_admin.admin import ReadonlyAdmin

class MyCustomAdmin(ReadonlyAdmin):


Also tabular and stacked inlines are supported.


from read_only_admin.admin import (

class MyCustomTabularInline(ReadonlyTabularInline):

    model = MyModel  # type: Type[Model]
    extra = 0  # type: int

class MyCustomStackedInline(ReadonlyStackedInline):

    model = MyModel  # type: Type[Model]
    extra = 0  # type: int

If you use list_editable in your custom admin classes, copy read_only_admin/templates/admin/pagination.html to your project templates/admin directory.


django-read-only-admin uses the MIT license. Please check the MIT-LICENSE file for more details.

Some part of code fairly stolen from teh internets with reference to the source. So, if you author of this code, please contact me.


Project Website:

Author: Alexei Andrushievich <>

For other authors list see AUTHORS file.

Project details

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-read-only-admin, version 0.15.3
Filename, size File type Python version Upload date Hashes
Filename, size django_read_only_admin-0.15.3-py3-none-any.whl (16.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size (27.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page