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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file django-readonly-model-1.0.tar.gz.

File metadata

  • Download URL: django-readonly-model-1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for django-readonly-model-1.0.tar.gz
Algorithm Hash digest
SHA256 329836bbeb73f432af7ebd4c08ca1c571e67f532e39a78ce7e43a464f8f5940e
MD5 9d7df69804b2806d99e353ab7c930ec3
BLAKE2b-256 dec1431b84e8329f268545de7d89c87ceee75a84bcf999b99df3837155b9b8ea

See more details on using hashes here.

File details

Details for the file django_readonly_model-1.0-py3-none-any.whl.

File metadata

  • Download URL: django_readonly_model-1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for django_readonly_model-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8cefa64f4066d05e186c3daa2d5edfd2caf3743775c43d550fe68aa6263c19b
MD5 5d618e684e1d1d7694dfd14b5dd02751
BLAKE2b-256 aae24f65994799a1b431f84f121d0300f81c8bbaa9988c00c8f23f1a5b90727e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page