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, 6.1 (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
Metadata
Release files for django-modeltrans 0.10.1
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.1.tar.gz | 47.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_modeltrans-0.10.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 86.0 kB
Release files / django_modeltrans-0.10.1.tar.gz
| Download URL | django_modeltrans-0.10.1.tar.gz |
|---|---|
| Size | 47.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5370f624901f9cbffb2e39c7a670a7a58c6c5fb4371ac085b43d8713c79fd6e4
|
|
BLAKE2b-256 checksum How to use checksums |
28d8848513e3912c8b2de0290e9f84162ea1eff35c10cb83db7a2a27b2ad03f9
|
| 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.1-py3-none-any.whl
| Download URL | django_modeltrans-0.10.1-py3-none-any.whl |
|---|---|
| Size | 38.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28de05b24df921f1b2a97ab62048eb57e88c675910fd20f20776b03bee3785dc
|
|
BLAKE2b-256 checksum How to use checksums |
86266a8ae21626035a63f2e4a9fe129a439e854c25b5d58297f69f2a9add3416
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|