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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 329836bbeb73f432af7ebd4c08ca1c571e67f532e39a78ce7e43a464f8f5940e |
|
MD5 | 9d7df69804b2806d99e353ab7c930ec3 |
|
BLAKE2b-256 | dec1431b84e8329f268545de7d89c87ceee75a84bcf999b99df3837155b9b8ea |
Close
Hashes for django_readonly_model-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8cefa64f4066d05e186c3daa2d5edfd2caf3743775c43d550fe68aa6263c19b |
|
MD5 | 5d618e684e1d1d7694dfd14b5dd02751 |
|
BLAKE2b-256 | aae24f65994799a1b431f84f121d0300f81c8bbaa9988c00c8f23f1a5b90727e |