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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django_modeltrans-0.10.2.tar.gz | 48.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_modeltrans-0.10.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 77.7 kB
Release files / django_modeltrans-0.10.2.tar.gz
| Download URL | django_modeltrans-0.10.2.tar.gz |
|---|---|
| Size | 48.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f102ce3e14da14eaf483cfd6548168ce3ef2f55c49c605f6926b008fd759cb02
|
|
BLAKE2b-256 checksum How to use checksums |
ee171d439a37203005d77c851bfc11f97f632b8836de973180732e526ec3162d
|
| 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.2-py3-none-any.whl
| Download URL | django_modeltrans-0.10.2-py3-none-any.whl |
|---|---|
| Size | 29.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
580c858f849aa8eefd33c8c4be5eb0df88f0d956d7d91ba20c9dab735424a7dc
|
|
BLAKE2b-256 checksum How to use checksums |
453a7c9a7e8534975d4c09265b75b539d860adb74cbe261cde8b7edcbcc2a328
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for django-modeltrans 0.10.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.