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

Uploaded Source

Built Distribution

django_user_defined_fields-0.0.15-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-user-defined-fields-0.0.15.tar.gz
  • Upload date:
  • Size: 8.2 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.15.tar.gz
Algorithm Hash digest
SHA256 eca4c424276aef36545f3124ce6318f147fe68c8ca98b1ea96b18d384a68630d
MD5 eae80d3b710f37dd1367bcac3a453f3d
BLAKE2b-256 91af5bc80ff2e61592800d9710f1563b6f184266031afb502cd91c706ddb4e63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_user_defined_fields-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 c4713bc462ef6109becb53ec9c09c7eed7da499137e34fd42270f43cc7566a36
MD5 d63ed9bfae9b3d460420ff31a643eeda
BLAKE2b-256 2f84e31d8920a252a357304137df624e63496a691f5150b5bb8ac3d2d48686d0

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