Adding more structure to JSONFields
Project description
Adding more structure to JSONFields
Documentation
The full documentation is at https://structjsonfield.readthedocs.io.
Quickstart
Install Django Structured JSONField:
pip install structjsonfield
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'structjsonfield',
...
)
Use the StructJSONField in your form
from structjsonfield import StructJSONField
ingredients = StructJSONField(
structure={
'name': forms.CharField(label=_('Name')),
'amount': forms.CharField(label=_('Amount')),
'units': forms.CharField(label=_('Units'))
})
Prerequisites
Make sure you have jQuery loaded in your template
Make sure you load the necessary form media (js + css)
Features
TODO
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
History
0.1.1 (2017-05-15)
Return unpacked rows as Columns to provide more context to the template
0.1.0 (2017-04-26)
First release on PyPI.
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
structjsonfield-0.1.1.tar.gz
(9.7 kB
view hashes)
Built Distribution
Close
Hashes for structjsonfield-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe1e29dbccfd0431a1ef46a5b8fd96dd63ecfb90bef65bc94ee0d75ce2236072 |
|
MD5 | a16180b9687924646da11e91d96b358d |
|
BLAKE2b-256 | c231e7dda054cc60bd80a8524ac151109f53bdd98ff8ce6b70049d97b1767017 |