wrwrwr
f168b55737
Apply population using a pre_save signal.
...
It can be used with ``get_or_create`` (without resaving) and, more importantly, fixture loading.
Extend population by providing two new modes: ``default`` that sets just the default translation (only if its not given; ensuring a fallback is available; alike ``update_translation_fields``) and ``required`` that further limits population by only filling default translation of non-nullable fields (minimum to keep some level of consistency).
Add a ``populate(mode)`` toggle on multilingual query set / manager and an ``auto_populate`` context manager for fixture loading.
2013-02-19 10:47:25 +01:00
Jacek Tomaszewski
de205918ca
Fix descriptor test for mysql.
2013-02-13 15:59:32 +01:00
Jacek Tomaszewski
14fdaa59fa
Add descriptor test.
2013-02-13 11:59:11 +01:00
Dirk Eschler
4ca3c103e5
Fixed prepopulated fields only work on the first defined field and made function aware of the current language. Added a unittest to verify. Resolves issue #57 .
2013-02-12 15:53:00 +01:00
Dirk Eschler
966d5ee962
Added unittest for group-fieldsets functionality in TranslationAdmin.
2013-02-12 12:20:32 +01:00
Dirk Eschler
8ff3b3731a
Fixed messed up multitable test model names.
2013-02-11 11:53:01 +01:00
wrwrwr
36c5d0b81a
Test registration and translation fields inheritance with a more complex model hierarchy (inspired by Mezzanine).
2013-02-10 18:32:17 +01:00
Jacek Tomaszewski
3c9bae241e
Fix descending order rewriting in all ordering calls.
2013-02-03 15:08:24 +01:00
Jacek Tomaszewski
865f451953
Fix MultilingualQUerySet custom inheritance.
2013-01-07 18:02:15 +01:00
Jacek Tomaszewski
0bdd01b0c8
Refactor tests: add section labels in models and translation.
2012-12-06 18:13:59 +01:00
Dirk Eschler
5affe7940c
Added basic tests for DateField, DateTimeField and TimeField and added them to the list of supported fields.
2012-11-18 00:08:04 +01:00
Dirk Eschler
5088f591fd
Disabled the test for GenericIPAddressField for now as it new in Django 1.4 and the tests will fail with 1.3. That said we don't expect any different behaviour from this field compared to IPAddressField.
2012-11-17 17:12:24 +01:00
Dirk Eschler
1163765c3b
Increased the list of supported fields. Today featuring: Floatfield, DecimalField, IPAddressField and GenericIPAddressField.
2012-11-17 16:19:15 +01:00
Dirk Eschler
2e4265324d
Added test for CommaSeparatedIntegerField and noted that it's implicitly supported as a subclass of CharField.
2012-11-15 21:29:02 +01:00
Dirk Eschler
7dd3891821
Added support and basic tests for BooleanField and NullBooleanField.
2012-11-14 23:37:45 +01:00
Jacek Tomaszewski
0949e95441
Add MultilingualManager and its tests.
2012-11-11 16:28:29 +01:00
Jacek Tomaszewski
a043680a68
Add Integer fields support.
2012-11-11 15:52:12 +01:00
Dirk Eschler
5b6f5ae8ea
Refactored test and model names.
2012-11-06 20:00:31 +01:00
Dirk Eschler
2e93ff05b4
Removed verify_exists argument from URLField declaration as it is deprecated in upcoming Django 1.5.
2012-10-28 00:23:32 +02:00
Dirk Eschler
dcd406a0df
Refactored tests to use a separate models.py.
2012-10-24 13:48:09 +02:00