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 testapp

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

Uploaded Source

Built Distribution

django_user_defined_fields-0.0.13-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-user-defined-fields-0.0.13.tar.gz
  • Upload date:
  • Size: 7.8 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.13.tar.gz
Algorithm Hash digest
SHA256 76dc8305e60dfa010d2696373ee1833cbcf53943d99b37feb654695f6e93a9cc
MD5 4851c3bee8ad42e2342207468cc11df9
BLAKE2b-256 a271d795d4fea79cca5afccdcc558f8a0faa71d65032e3bb3a1db60e15059ea7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_user_defined_fields-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 b4c8137f3f9d9511f3bbb3817b6198a202be5fbca14074618a36a5ee6492ecd6
MD5 5cb44a45e7acff4e514d823c1335ec6f
BLAKE2b-256 8197f35b7ac973c2ff48247e4e6f0c7fbe1b94f7f77015ea0c07e3cbfe1e9ee9

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