Skip to main content

A Django app for user defined fields

Project description

django-user-defined-fields

PyPI version Code style: black

Django Used Defined Fields is a simple way to allow your users to add extra fields to your models, based on JSONField.

Installation

Standard pip install:

pip install django-user-defined-fields

Quickstart

from userdefinedfields.models import ExtraFieldsJSONField


class Example(models.Model):
  extra_fields = ExtraFieldsJSONField()

Tests

Run tests in example directory with python manage.py test library

Settings

USERDEFINEDFIELDS_INPUT_CLASSES = 'd-none'  # hide the textarea if you're using a frontend solution

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_user_defined_fields-0.0.19.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

django_user_defined_fields-0.0.19-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file django_user_defined_fields-0.0.19.tar.gz.

File metadata

  • Download URL: django_user_defined_fields-0.0.19.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.1 Darwin/21.6.0

File hashes

Hashes for django_user_defined_fields-0.0.19.tar.gz
Algorithm Hash digest
SHA256 cd71509dbeb6c1594dbde585918f0e1b9947fa3dd8141ca4e1d24fb96e7320b6
MD5 88ee014e6183bc565b8e88a1e10ca206
BLAKE2b-256 0616d89224259328af7dd874e10e07819bf8858a9fd40a050a0f5ed4efa78907

See more details on using hashes here.

File details

Details for the file django_user_defined_fields-0.0.19-py3-none-any.whl.

File metadata

File hashes

Hashes for django_user_defined_fields-0.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 64ca1dbdfddfb714ea49a2136615999d9d81bcd72624c5b9be858b15523403a9
MD5 4e7dfb3df8a069d74c40500f1cc89f16
BLAKE2b-256 02214977587692ffe5851599863104fa06028e4e97eeb5f570003e4422b12a2b

See more details on using hashes here.

Supported by

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