Skip to main content

https://github.com/nathforge/django-roma

Project description

django-roma is a read-only ModelAdmin.

Django’s admin interface is designed for editing, not viewing. But sometimes you want read-only models, and the admin is a convenient place to put them.

Installation:

pip install django-roma

Usage:

Edit the relevant admin.py in your project. e.g:

from roma import ReadOnlyModelAdmin
from myproject.myapp.models import MyModel

admin.site.register(MyModel, ReadOnlyModelAdmin)

Or if you want a bit more customisation:

from roma import ReadOnlyModelAdmin
from myproject.myapp.models import MyModel

class MyModelAdmin(ReadOnlyModelAdmin):
    fields = ("title",)

admin.site.register(MyModel, MyModelAdmin)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

django-roma-0.1.tar.gz (1.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page