Skip to main content

Model translations in a jsonb field

Project description


Travis CI Documentation Status Any color you like

Translates Django model fields in a JSONField using a registration approach.


  • Uses one django.contrib.postgres.JSONField (PostgreSQL jsonb field) per model.
  • Django 1.11, 2.0 (with their supported python versions)
  • PostgreSQL >= 9.5 and Psycopg2 >= 2.5.4.
  • Available on pypi
  • Documentation

Running the tests


Running the tests only for the current environment, use make test


Some concepts and code come from, which is in turn inspired by

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.

Since JSONB is supported by Postgres now, we developed this approach.

Relevant 3rd party documentation

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-modeltrans, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size django-modeltrans-0.4.0.tar.gz (23.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page