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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_user_defined_fields-0.0.24-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_user_defined_fields-0.0.24.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.1 Darwin/25.2.0

File hashes

Hashes for django_user_defined_fields-0.0.24.tar.gz
Algorithm Hash digest
SHA256 4d9aad6711fc98c0bdbc5161ae2e325c3d98f003147ffcf2cd602a5a32a94b66
MD5 7006aa9ba323c623d2c4f596fa0f6c3c
BLAKE2b-256 261aecfef730b43e7f10ff5f89651bd8b0f5834c5947aad20cae31394cb4e0d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_user_defined_fields-0.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 66d767145380a867586156b27994cc2270b1c8a92615b4e6bbdf80d4570beeba
MD5 8a8a2b031f054e5c7ac3b1ccb6fde045
BLAKE2b-256 054e0768083bda7e04808e8fa2b2cd18c108c98aac66f557ecc351bf57890bda

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page