Skip to main content

django-modeltrans

CI Documentation Status Any color you like

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

Features/requirements

  • Uses one PostgreSQL jsonb-field per model (via django.db.models.JSONField)
  • Django 5.2, 6.0 (with their supported python versions)
  • PostgreSQL >= 14 and the appropriate psycopg version for your Django version
  • 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.10.0.tar.gz (46.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_modeltrans-0.10.0-py2.py3-none-any.whl (38.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django_modeltrans-0.10.0.tar.gz.

File metadata

  • Download URL: django_modeltrans-0.10.0.tar.gz
  • Upload date:
  • Size: 46.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for django_modeltrans-0.10.0.tar.gz
Algorithm Hash digest
SHA256 41286b9783881f26628397e175021dbb09e87057ee393cd5047142cbac835656
MD5 4a883d469286b0f50809bb5227dd0d9a
BLAKE2b-256 c23c67930a48644423dc54c37e96266e5da8a40f5dd8f72f4be0ee5240785bf1

See more details on using hashes here.

File details

Details for the file django_modeltrans-0.10.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_modeltrans-0.10.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 103e5a26eeb322494726a390c3ccf4c88f30155d9ccc0fd1ac522f284de0d8e7
MD5 83a928e78875e2cadf2e560721ca6fff
BLAKE2b-256 84461968d5c9a32f74b94c9c1957d318ca1f6fb251093110b0c940752ee6b041

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 files

0.9.0

1 file

0.8.0

1 file

0.7.5

1 file

0.7.4

1 file

0.7.3

1 file

0.7.2

1 file

0.7.1

1 file

0.7.0

1 file

0.6.0

1 file

0.5.2

1 file

0.5.1

1 file

0.5.0

1 file

0.4.0

1 file

0.3.4

1 file

0.3.3

1 file

0.3.2

1 file

0.3.1

1 file

0.3.0

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

0.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page