Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

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)

Release history Release notifications

This version
History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-roma-0.1.tar.gz (1.6 kB) Copy SHA256 hash SHA256 Source None Nov 3, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page