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

Uploaded Source

Built Distribution

django_user_defined_fields-0.0.18-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file django_user_defined_fields-0.0.18.tar.gz.

File metadata

  • Download URL: django_user_defined_fields-0.0.18.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.1 Darwin/21.6.0

File hashes

Hashes for django_user_defined_fields-0.0.18.tar.gz
Algorithm Hash digest
SHA256 4fe951ec85f66c4b351c5e0bac6e8fcb8c58001fd8c095c3852f71abcd5ff660
MD5 8c95b9f37c53a4bc0c5c9b42d0ed0c6d
BLAKE2b-256 cfba7772c8dc66e82a3210a2887d893833cb153b7ed542ccc00781efa22f7caf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_user_defined_fields-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 f795f5db3cb3164364aadc5146e9d0985fbf4304a2581b61336e43eab2cf9e9c
MD5 33c5d9b8f9be5d819bc72023914c802b
BLAKE2b-256 f03e43f920ccde34463d997dcc35ce70cdb9db908fa69675a47ff4ed59371214

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