Translates Django model fields in a
using a registration approach.
django.contrib.postgres.JSONField(PostgreSQL jsonb field) per model.
- Django 2.1, 2.2 (with their supported python versions)
- PostgreSQL >= 9.5 and Psycopg2 >= 2.5.4.
- Available on pypi
Running the tests
Running the tests only for the current environment, use
Some concepts and code come from https://github.com/deschler/django-modeltranslation , which is in turn inspired by https://github.com/zmathew/django-linguo
We started this solution at Zostera because we did not like:
- The way django-modeltranslation adds one field per language (and thus requires a migration when adding a language);
- The unpredictability of the original field.
is supported by Postgres now, we developed this approach.