Skip to main content

A Django app for user defined fields

Project description

django-user-defined-fields

PyPI version Build Status

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

Uploaded Source

File details

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

File metadata

  • Download URL: django-user-defined-fields-0.0.9.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for django-user-defined-fields-0.0.9.tar.gz
Algorithm Hash digest
SHA256 25db658081a1cdafe9cd832414b66d219cd1082007b9c187f3a8542912e8f72c
MD5 5561bcb2b46b1443a13ebd255df744f9
BLAKE2b-256 5c7bf7f875de240e89c6f162aa432d2669727364775eed338d1d0e1becd544f5

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