Django EAV using JSONField
- Uses one
django.contrib.postgres.JSONField
(PostgreSQL jsonb field) per model. - Django 1.9, 1.10, 1.11 (with their supported python versions)
- PostgreSQL >= 9.4 and Psycopg2 >= 2.5.4.
tox
At Zostera, we tried some different approaches to store attributes for our records.
While existing solutions using a Unit
, Attribute
and ObjectAttribute
models did work,
they resulted in performance issues while retrieving big lists with a lot of attributes.
This project is basically some nice syntax around the idea outlined in this blogpost.
- django-eavkit
- django-eav
- django-dynamic-model (abandoned)