Skip to main content

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)

Metadata

Release files for django-roma 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-roma 0.1
File Size Uploaded
django-roma-0.1.tar.gz 1.6 kB Details

Release files / django-roma-0.1.tar.gz

Download URL django-roma-0.1.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
621587062728a0d9059c45bf9b184f4b6eb3c8fb86dbe491e39b56ca89d6e036
BLAKE2b-256 checksum
How to use checksums
ff81dd9a2cba0945bdfe7f67ce232e197941c058fe03e35aec338917358bfe21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page