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

Uploaded Source

Built Distribution

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