A content translation framework for django integrated automatically in the normal ORM. Removes the pain of having to think about translations in a django project.
This project is yet another attempt at making model translations suck less in Django. It uses an automatically created Translations Model to store translatable fields in arbitrary languages with a foreign key to the main model.
Documentation for django-hvad can be found at http://django-hvad.readthedocs.org/.
This project replaces the obsolete django-nani package. It provides the same functionality, but does not affect the default queries: translated fields have to be activated by calling a specific method on the TranslationManager.
django-hvad is still in beta, please use it with caution and report any bug(s) you might encounter on https://github.com/KristianOellegaard/django-hvad/issues
Feel free to join us at #django-hvad on irc.freenode.net for a chat
Returns all objects, but without any translated fields attached - this query is just the default django queryset and can therefore be used as usual.
Returns all objects as translated instances, but only the ones that are translated into the currect language. You can also specify which language to get, using e.g.
- Simple API
- Versatile (can manipulate arbitrary languages without changing the DB layout)
- Fast (few and simple queries)
- High level (no custom SQL Compiler or other scary things)
Jonas Obrist (https://github.com/ojii) for making django-nani and for helping me with this project.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|django-hvad-0.4.1.tar.gz (71.5 kB) Copy SHA256 hash SHA256||Source||None||Jun 1, 2014|
|django-hvad-0.4.1.zip (106.9 kB) Copy SHA256 hash SHA256||Source||None||Jun 1, 2014|