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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for django_user_defined_fields-0.0.22.tar.gz
Algorithm Hash digest
SHA256 52d56b849be589778ab54c3d87b6ae954b2de3db678156a34ee5b05706f2e322
MD5 c0dc52db935c3142d4064701230ff319
BLAKE2b-256 9f7699ae0cac077032343b65c1125e7f6fd0a3c603c316a8d64df8c47f72e19c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_user_defined_fields-0.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 5b3f9c3870a7b6fcc14ce8db59245992b21a5104da239bf6b7739d0cc8a158f2
MD5 de004a248d6116063a69baeb6d6b358e
BLAKE2b-256 c5db7224440aa1f7cf71f0e00b28b76c51bdb6ce5f08b3ea841cf8a30d5915d8

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page