The easiest way to create read-only models for django
Project description
django-readonly-model
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
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.
Source Distribution
Built Distribution
Close
Hashes for django-readonly-model-1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d24bad6adb0da040e7eaf013d05401e3eb81f87cf89d136ade0e688e1cad6dd8 |
|
MD5 | d425771d2c1be3af5c71ba48e1a60d96 |
|
BLAKE2b-256 | 9cb364f0976a2719c201b80f617c638e3e7289a94b17432b6bd75213ca3539cc |
Close
Hashes for django_readonly_model-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2403cd213745690597e66e2e0407863a00badb5717bc6b178c37eff4488b03fb |
|
MD5 | 99e993e14e42087547935087a11d36c5 |
|
BLAKE2b-256 | 5c6c9171a0dc80888fb57c6bc9f1d832da80c2ab9e7fdbd0cb8071b567ed3831 |