Skip to main content

The easiest way to create read-only models for django

Project description

django-readonly-model

Build Status

The easiest way to create read-only models

Installation

Install using pip...

pip install django-readonly-model

Example

Add 'django_readonly_model' to your INSTALLED_APPS setting.

INSTALLED_APPS = [
    ...
    'readonly_model',
]

And just use:

from django.db import models

class YourModel(models.Model):
    """Some fields..."""

    class Meta:
        read_only_model = True

Project details


Download files

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

Source Distribution

django-readonly-model-1.0.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

django_readonly_model-1.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

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