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

Uploaded Source

Built Distribution

django_user_defined_fields-0.0.14-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file django-user-defined-fields-0.0.14.tar.gz.

File metadata

  • Download URL: django-user-defined-fields-0.0.14.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Darwin/21.2.0

File hashes

Hashes for django-user-defined-fields-0.0.14.tar.gz
Algorithm Hash digest
SHA256 5042d5fbd103dbfd0dcc9621a567485ae3cf54efff6fcda3e5ef0324661e6d71
MD5 abf42d638da587613c78e283eadd4083
BLAKE2b-256 b23904e3dd7561375bf3122f0be3d138a80ce64ca809b5a88e810fc7333d3565

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_user_defined_fields-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 17d0e3a2b6fbf4ae5a040d4731cae30e8d31ad0e2e48de57de61557f70f0b637
MD5 2c17fa4011aba061c813bf6692a72fe5
BLAKE2b-256 fdb440a0a23d68e285e3029580ec8333124829c0cd9a8cbc9b5ae1deffcd49f9

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