django-modeltranslation/modeltranslation/tests
2012-07-13 08:04:11 +00:00
..
__init__.py Updated unittest of rule 3 to do a language switch. This should demonstrate a wrong behaviour of save when the current language is different than the default language. In this case the original field is set to value of the current language's field. See issue 33 for details. 2012-07-12 22:15:44 +00:00
settings.py Added missing DEFAULT_LANGUAGE setting. 2012-07-13 08:04:11 +00:00
urls.py Major refactoring of the admin integration. Subclassed BaseModelAdmin and InlineModelAdmin. Patching options in init doesn't seem to be thread safe. Instead used provided hooks like get_form, get_formset and get_fieldsets. This should resolve several problems with the exclude and fieldsets options and properly support options in inlines. Added a new admin option exclude_languages to exclude certain translation fields per admin class. Moved tests to separate folder and added tests for TranslationAdmin. To run the tests the settings provided in model.tests.modeltranslation have to be used (settings.LANGUAGES override doesn't work for TranslationAdmin). 2012-07-04 09:29:05 +00:00