Django-hstore-flattenfields is an alternative for who want to have a Dynamic Scheme in Django without rely on a NoSQL database. Django-hstore-flattenfields add "dynamic fields" in Django Models, using the Hstore extension built in the PostgreSQL v9.1+. This way you can quickly add new fields in a Model, with some great features.
Django-hstore-flattenfields is built and used in the Multmeio enterprise.
- ModelForms
- *.objects.create()
- Automatic type parsing
- QuerySet filters (exact, iexact, contains, icontains, startswith, istartswith, endswith, iendswith, in, lt, lte, gt, gte)
- Aggregations
Install django-hstore-flattenfields with pip:
$ pip install django-hstore-flattenfields
You're done! django-hstore-flattenfields is ready to use! ;)
For a full example click here.
TODO Add usage information and useful example
Star and follow us!
Fork and clone this repository.
$ git clone [email protected]:<username>/django-hstore-flattenfields.git
Change <username> to your GitHub account.
Cd into django-hstore-flattenfields directory and install it's dependencies:
$ cd django-hstore-flattenfields/
$ pip install -r requirements.txt
Now start pushing! :D
Read our documentation. TODO Add contact/help options