Skip to main content

django-modeltrans

Travis CI Documentation Status Any color you like

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

Features/requirements

  • 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

tox

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

Attribution

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.

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

Relevant 3rd party documentation

Download files

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

Source Distribution

django-modeltrans-0.3.1.tar.gz (23.1 kB view details)

Uploaded Source

File details

Details for the file django-modeltrans-0.3.1.tar.gz.

File metadata

File hashes

Hashes for django-modeltrans-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c0c017ef7286f1e8b544806c269253eaa077e36e831a8a7a74d9e0a9b8076a71
MD5 2642982fa04245b091f438e29c3a71f7
BLAKE2b-256 e42d267b4cdfa95c85382e18a2c0bb216f10bc5ae578f76096c40e3c87253bbc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page