django-modeltrans
Translates Django model fields in a JSONField using a registration approach.
Features/requirements
- Uses one PostgreSQL
jsonb-field per model (viadjango.db.models.JSONField) - Django 5.2, 6.0 (with their supported python versions)
- PostgreSQL >= 14 and the appropriate
psycopgversion 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
Release files for django-modeltrans 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_modeltrans-0.10.0.tar.gz | 46.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_modeltrans-0.10.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 85.3 kB
Release files / django_modeltrans-0.10.0.tar.gz
| Download URL | django_modeltrans-0.10.0.tar.gz |
|---|---|
| Size | 46.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41286b9783881f26628397e175021dbb09e87057ee393cd5047142cbac835656
|
|
BLAKE2b-256 checksum How to use checksums |
c23c67930a48644423dc54c37e96266e5da8a40f5dd8f72f4be0ee5240785bf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / django_modeltrans-0.10.0-py2.py3-none-any.whl
| Download URL | django_modeltrans-0.10.0-py2.py3-none-any.whl |
|---|---|
| Size | 38.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
103e5a26eeb322494726a390c3ccf4c88f30155d9ccc0fd1ac522f284de0d8e7
|
|
BLAKE2b-256 checksum How to use checksums |
84461968d5c9a32f74b94c9c1957d318ca1f6fb251093110b0c940752ee6b041
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|