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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for django-user-defined-fields-0.0.16.tar.gz
Algorithm Hash digest
SHA256 77d685a395b27674b413bf97253fd1296fd40ae5dd46bdba07103a50c8e8018c
MD5 4d6de6bd20c4daa3d19d8feb71898f83
BLAKE2b-256 23945a91ca8ec16e943087280172d2e0854cd43c20313c11e98102af3f8f753a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_user_defined_fields-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 6630dae89761ad0869d1aae109bccdce8ba0e683cfdbd36e136b5903ab0176bb
MD5 a3bbcc6b29ed4bd371b21a87865f408d
BLAKE2b-256 631326d238517be270f8e4c2a039e7b1d4a2bdd05ea042fa0c887b2b9eb924a9

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