# 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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/uptick/django-user-defined-fields/",
"name": "django-user-defined-fields",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7,<4",
"maintainer_email": "",
"keywords": "django,custom,fields,json",
"author": "Aidan Lister",
"author_email": "aidan@uptickhq.com",
"download_url": "https://files.pythonhosted.org/packages/1e/ab/8e393e75cdd2bbe8d5f8bc3c8f6ba7f281f379b0aa686ce578428955c074/django_user_defined_fields-0.0.21.tar.gz",
"platform": null,
"description": "# django-user-defined-fields\n\n[![PyPI version](https://badge.fury.io/py/django-user-defined-fields.svg)](https://badge.fury.io/py/django-user-defined-fields)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nDjango Used Defined Fields is a simple way to allow your users to add extra fields to your models, based on JSONField.\n\n\n## Installation\n\nStandard pip install:\n\n```bash\npip install django-user-defined-fields\n```\n\n\n## Quickstart\n\n```python\nfrom userdefinedfields.models import ExtraFieldsJSONField\n\n\nclass Example(models.Model):\n extra_fields = ExtraFieldsJSONField()\n\n```\n\n## Tests\nRun tests in example directory with `python manage.py test library`\n\n\n# Settings\n```\nUSERDEFINEDFIELDS_INPUT_CLASSES = 'd-none' # hide the textarea if you're using a frontend solution\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Django app for user defined fields",
"version": "0.0.21",
"split_keywords": [
"django",
"custom",
"fields",
"json"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "010aaf67428bcb0289991de6b2d6ce9c98abc04860788d6c521c1225df22b051",
"md5": "7f678bed2c98f468feefb39759bf61e8",
"sha256": "208aec9468081d18c80dc4fa2d9e32eac77487bd1001b281fb3f11d84e66a785"
},
"downloads": -1,
"filename": "django_user_defined_fields-0.0.21-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7f678bed2c98f468feefb39759bf61e8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7,<4",
"size": 12240,
"upload_time": "2023-01-03T01:35:14",
"upload_time_iso_8601": "2023-01-03T01:35:14.908700Z",
"url": "https://files.pythonhosted.org/packages/01/0a/af67428bcb0289991de6b2d6ce9c98abc04860788d6c521c1225df22b051/django_user_defined_fields-0.0.21-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1eab8e393e75cdd2bbe8d5f8bc3c8f6ba7f281f379b0aa686ce578428955c074",
"md5": "3c42c95dac18d60e8b3ce78154ca4308",
"sha256": "26372068089d7908fed8f3817d25595274f314850f7fb22cbfeb8991d415f056"
},
"downloads": -1,
"filename": "django_user_defined_fields-0.0.21.tar.gz",
"has_sig": false,
"md5_digest": "3c42c95dac18d60e8b3ce78154ca4308",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7,<4",
"size": 8424,
"upload_time": "2023-01-03T01:35:16",
"upload_time_iso_8601": "2023-01-03T01:35:16.606865Z",
"url": "https://files.pythonhosted.org/packages/1e/ab/8e393e75cdd2bbe8d5f8bc3c8f6ba7f281f379b0aa686ce578428955c074/django_user_defined_fields-0.0.21.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-03 01:35:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "uptick",
"github_project": "django-user-defined-fields",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "django-user-defined-fields"
}