django-modeltrans 0.8.0
pip install django-modeltrans
Latest version
Released:
Model translations in a jsonb field
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (Simplified BSD)
- Author: Jan Pieter Waagmeester
Classifiers
- Environment
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
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 4.2, 5.0 (with their supported python versions)
- PostgreSQL >= 13 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
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (Simplified BSD)
- Author: Jan Pieter Waagmeester
Classifiers
- Environment
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-modeltrans-0.8.0.tar.gz
.
File metadata
- Download URL: django-modeltrans-0.8.0.tar.gz
- Upload date:
- Size: 46.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0bc2c6a430d8102826d182db776a4feb5549ceb51b30b07d0ed1fa1af7a18a6 |
|
MD5 | 183b50882cd220546b91d226c39dbcb0 |
|
BLAKE2b-256 | 9047d9990a9cc413305a20bc030296a1b44e012d0d607d8bdb32a2344ec14185 |