An open API service indexing awesome lists of open source software.

https://github.com/uptick/django-user-defined-fields

Used Defined Fields for Django
https://github.com/uptick/django-user-defined-fields

Last synced: 4 months ago
JSON representation

Used Defined Fields for Django

Awesome Lists containing this project

README

          

# django-user-defined-fields

[![PyPI version](https://badge.fury.io/py/django-user-defined-fields.svg)](https://badge.fury.io/py/django-user-defined-fields)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/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:

```bash
pip install django-user-defined-fields
```

## Quickstart

```python
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
```