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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for django_user_defined_fields-0.0.21.tar.gz
Algorithm Hash digest
SHA256 26372068089d7908fed8f3817d25595274f314850f7fb22cbfeb8991d415f056
MD5 3c42c95dac18d60e8b3ce78154ca4308
BLAKE2b-256 1eab8e393e75cdd2bbe8d5f8bc3c8f6ba7f281f379b0aa686ce578428955c074

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_user_defined_fields-0.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 208aec9468081d18c80dc4fa2d9e32eac77487bd1001b281fb3f11d84e66a785
MD5 7f678bed2c98f468feefb39759bf61e8
BLAKE2b-256 010aaf67428bcb0289991de6b2d6ce9c98abc04860788d6c521c1225df22b051

See more details on using hashes here.

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