Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str With Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad Num body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call NameLoad keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Num body For NameStore TupleLoad Str Str body Assign NameStore Call NameLoad NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Num body For NameStore TupleLoad Str Str body Assign NameStore Call NameLoad NameLoad BinOpMod Str NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr keyword ListLoad Str With Call AttributeLoad NameLoad attr Num body For NameStore TupleLoad Str Str body Assign NameStore Call NameLoad NameLoad BinOpMod Str NameLoad With Call AttributeLoad NameLoad attr Num body For NameStore TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpMod Str NameLoad Str Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr keyword ListLoad Str keyword NameLoad With Call AttributeLoad NameLoad attr Num body For NameStore TupleLoad Str Str body Assign NameStore Call NameLoad NameLoad BinOpMod Str NameLoad With Call AttributeLoad NameLoad attr Num body For NameStore TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpMod Str NameLoad Str Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr keyword ListLoad Str keyword ListLoad Str keyword NameLoad With Call AttributeLoad NameLoad attr Num body For NameStore TupleLoad Str Str body Assign NameStore Call NameLoad NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr keyword ListLoad Str keyword Str keyword NameLoad With Call AttributeLoad NameLoad attr Num body For NameStore TupleLoad Str Str body Assign NameStore Call NameLoad NameLoad BinOpMod Str NameLoad decorator_list decorator_list
N/A __future__ unicode_literals django.utils translation exam before N/A settings models Translation base BaseTestCase models Article FooModel DefaultLanguageFieldModel DefaultLanguageFieldModelWithCallable CustomTranslationModel DeciderModel ModelMixinTest N/A BaseTestCase N/A N/A 
    Tests Linguist mixin.
     before N/A N/A self N/A N/A N/A N/A N/A translation activate en N/A before test_linguist_identifier N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A hasattr N/A self instance linguist_identifier N/A N/A N/A self assertEqual N/A N/A self instance linguist_identifier foo N/A test_activate_language N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A hasattr N/A self instance activate_language N/A N/A N/A N/A self instance activate_language en N/A N/A N/A self assertEqual N/A N/A N/A self instance _linguist language en N/A N/A N/A N/A self instance activate_language fr N/A N/A N/A self assertEqual N/A N/A N/A self instance _linguist language fr N/A test_default_language N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A hasattr N/A self instance default_language N/A N/A N/A self assertEqual N/A N/A self instance default_language en N/A N/A N/A self instance default_language fr N/A N/A N/A self assertEqual N/A N/A self instance default_language fr N/A test_available_languages N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A hasattr N/A self instance available_languages N/A N/A N/A self assertEqual N/A len N/A N/A self instance available_languages 0 N/A test_translatable_fields N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A hasattr N/A self instance translatable_fields N/A N/A N/A self assertEqual N/A N/A self instance translatable_fields N/A title excerpt body N/A test_cached_translations_count N/A N/A self N/A N/A N/A N/A N/A N/A self instance activate_language en N/A N/A N/A self instance title Hello N/A N/A N/A N/A self instance activate_language fr N/A N/A N/A self instance title Bonjour N/A N/A N/A self assertEqual N/A N/A self instance cached_translations_count 2 N/A N/A N/A N/A self instance activate_language pt N/A N/A N/A self instance title Ola N/A N/A N/A self assertEqual N/A N/A self instance cached_translations_count 3 N/A test_clear_translations_cache N/A N/A self N/A N/A N/A N/A N/A N/A self instance activate_language en N/A N/A N/A self instance title Hello N/A N/A N/A N/A self instance activate_language fr N/A N/A N/A self instance title Bonjour N/A N/A N/A self assertEqual N/A N/A self instance cached_translations_count 2 N/A N/A N/A N/A self instance clear_translations_cache N/A N/A N/A self assertEqual N/A N/A self instance cached_translations_count 0 N/A test_model_fields N/A N/A self N/A N/A N/A N/A code name N/A settings SUPPORTED_LANGUAGES N/A N/A field_name N/A title_%s code N/A N/A N/A self assertIn field_name N/A dir N/A N/A N/A self instance _meta model N/A test_new_instance_cache N/A N/A self N/A N/A N/A N/A N/A N/A self instance activate_language en N/A N/A N/A self instance title Hello N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A self instance _linguist translations N/A title N/A en N/A cached_obj N/A N/A N/A N/A N/A self instance _linguist translations N/A title N/A en N/A N/A N/A self assertEqual N/A cached_obj language en N/A N/A N/A self assertIsNone N/A cached_obj object_id N/A N/A N/A self assertEqual N/A cached_obj field_value Hello N/A N/A N/A self assertEqual N/A cached_obj is_new True N/A N/A N/A self assertEqual N/A cached_obj identifier foo N/A N/A N/A self assertEqual N/A cached_obj field_name title N/A N/A N/A N/A self instance activate_language fr N/A N/A N/A self instance title Bonjour N/A N/A N/A self assertEqual N/A N/A self instance cached_translations_count 2 N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A self instance _linguist translations N/A title N/A fr N/A cached_obj N/A N/A N/A N/A N/A self instance _linguist translations N/A title N/A fr N/A N/A N/A self assertEqual N/A cached_obj language fr N/A N/A N/A self assertIsNone N/A cached_obj object_id N/A N/A N/A self assertEqual N/A cached_obj field_value Bonjour N/A N/A N/A self assertEqual N/A cached_obj is_new True N/A N/A N/A self assertEqual N/A cached_obj identifier foo N/A N/A N/A self assertEqual N/A cached_obj field_name title N/A test_saved_instance_cache N/A N/A self N/A N/A N/A N/A N/A N/A self instance activate_language en N/A N/A N/A self instance title Hello N/A N/A N/A N/A self instance activate_language fr N/A N/A N/A self instance title Bonjour N/A N/A N/A N/A self instance save N/A N/A N/A self assertEqual N/A N/A N/A Translation objects count 2 N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A self instance _linguist translations N/A title N/A fr N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A self instance _linguist translations N/A title N/A en N/A title_fr N/A N/A N/A N/A N/A self instance _linguist translations N/A title N/A fr N/A title_en N/A N/A N/A N/A N/A self instance _linguist translations N/A title N/A en N/A N/A N/A self assertEqual N/A title_en language en N/A N/A N/A self assertEqual N/A title_en object_id N/A N/A self instance pk N/A N/A N/A self assertEqual N/A title_en field_value Hello N/A N/A N/A self assertEqual N/A title_en is_new False N/A N/A N/A self assertEqual N/A title_en identifier foo N/A N/A N/A self assertEqual N/A title_en field_name title N/A N/A N/A self assertEqual N/A title_fr language fr N/A N/A N/A self assertEqual N/A title_fr object_id N/A N/A self instance pk N/A N/A N/A self assertEqual N/A title_fr field_value Bonjour N/A N/A N/A self assertEqual N/A title_fr is_new False N/A N/A N/A self assertEqual N/A title_fr identifier foo N/A N/A N/A self assertEqual N/A title_fr field_name title N/A test_instance_cache_has_changed N/A N/A self N/A N/A N/A N/A N/A N/A self instance activate_language en N/A N/A N/A self instance title Hello N/A N/A N/A N/A self instance activate_language fr N/A N/A N/A self instance title Bonjour N/A N/A N/A N/A self instance save N/A N/A N/A self assertNumQueries 1 N/A N/A N/A N/A N/A self instance save N/A instance N/A N/A N/A FooModel objects get pk N/A N/A self instance pk N/A N/A N/A instance activate_language en N/A N/A instance title_en Hi N/A N/A instance title_fr Salut N/A N/A N/A self assertNumQueries 3 N/A N/A N/A N/A instance save N/A N/A N/A self assertEqual N/A instance title Hi N/A N/A N/A self assertEqual N/A instance title_en Hi N/A N/A N/A self assertEqual N/A instance title_fr Salut N/A instance N/A N/A N/A FooModel objects get pk N/A N/A self instance pk N/A N/A N/A instance activate_language en N/A N/A N/A self assertEqual N/A instance title Hi N/A N/A N/A self assertEqual N/A instance title_en Hi N/A N/A N/A self assertEqual N/A instance title_fr Salut N/A instance N/A N/A N/A FooModel objects get pk N/A N/A self instance pk N/A N/A N/A instance activate_language en N/A N/A instance title Howdy N/A N/A N/A self assertNumQueries 2 N/A N/A N/A N/A instance save N/A N/A N/A self assertEqual N/A instance title_en Howdy N/A N/A N/A self assertEqual N/A instance title_fr Salut N/A N/A N/A instance activate_language en N/A N/A instance title Plop N/A N/A N/A self assertNumQueries 2 N/A N/A N/A N/A instance save N/A N/A N/A self assertEqual N/A instance title Plop N/A N/A N/A self assertEqual N/A instance title_en Plop N/A N/A N/A self assertEqual N/A instance title_fr Salut N/A instance N/A N/A N/A FooModel objects get pk N/A N/A self instance pk N/A N/A N/A instance activate_language en N/A N/A N/A self assertEqual N/A instance title Plop N/A N/A N/A self assertEqual N/A instance title_en Plop N/A N/A N/A self assertEqual N/A instance title_fr Salut N/A test_override_language N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A hasattr N/A self instance override_language N/A N/A N/A N/A self instance activate_language fr N/A N/A N/A self assertEqual N/A N/A N/A self instance _linguist language fr N/A N/A N/A N/A self instance override_language de N/A N/A N/A N/A self assertEqual N/A N/A N/A self instance _linguist language de N/A N/A N/A self assertEqual N/A N/A N/A self instance _linguist language fr N/A test_instance_cache_only N/A N/A self N/A N/A N/A N/A N/A self assertRaises TypeError N/A FooModel _linguist N/A i N/A range 10 N/A N/A o N/A FooModel N/A N/A N/A o activate_language en N/A N/A o title N/A title %d i N/A N/A N/A o activate_language fr N/A N/A o title N/A title %d i N/A N/A N/A o save N/A N/A N/A self assertEquals N/A o cached_translations_count 2 N/A test_default_language_descriptor N/A N/A self N/A N/A N/A m N/A DefaultLanguageFieldModel N/A N/A N/A self assertEqual N/A m lang fr N/A N/A N/A self assertEqual N/A m default_language fr N/A N/A m title_fr Bonjour N/A N/A m title_en Hello N/A N/A N/A m save N/A N/A N/A self assertEqual N/A m cached_translations_count 2 N/A N/A N/A translation activate it N/A N/A N/A self assertEqual N/A m title Bonjour N/A test_default_language_descriptor_with_callable N/A N/A self N/A N/A N/A m N/A DefaultLanguageFieldModelWithCallable N/A N/A N/A self assertEqual N/A m lang fr N/A N/A N/A self assertEqual N/A m default_language fr N/A N/A m title_fr Bonjour N/A N/A m title_en Hello N/A N/A N/A m save N/A N/A N/A self assertEqual N/A m cached_translations_count 2 N/A N/A N/A translation activate it N/A N/A N/A self assertEqual N/A m title Bonjour N/A test_default_language_descriptor_with_multiple_languages N/A N/A self N/A N/A N/A m N/A DefaultLanguageFieldModel title hello title_en hello title_fr bonjour lang en N/A N/A N/A m save N/A N/A N/A self assertEqual N/A N/A N/A Translation objects count 2 N/A N/A N/A N/A N/A N/A Translation objects all delete N/A m N/A DefaultLanguageFieldModel title_en hello title_fr bonjour lang en N/A N/A N/A m save N/A N/A N/A self assertEqual N/A N/A N/A Translation objects count 2 N/A test_language_fields N/A N/A self N/A N/A N/A m N/A FooModel title_en hello title_fr bonjour N/A N/A N/A m save N/A N/A N/A self assertEqual N/A m title_en hello N/A N/A N/A self assertEqual N/A m title_fr bonjour N/A m N/A DefaultLanguageFieldModel title_en hello title_fr bonjour lang en N/A N/A N/A m save N/A N/A N/A self assertEqual N/A m title_en hello N/A N/A N/A self assertEqual N/A m title_fr bonjour N/A m N/A DefaultLanguageFieldModelWithCallable title_en hello title_fr bonjour N/A N/A N/A m save N/A N/A N/A self assertEqual N/A m title_en hello N/A N/A N/A self assertEqual N/A m title_fr bonjour N/A test_decider N/A N/A self N/A N/A N/A m N/A DeciderModel N/A N/A m title bonjour N/A N/A N/A m save N/A N/A N/A self assertEqual N/A N/A N/A Translation objects count 0 N/A N/A N/A self assertEqual N/A N/A N/A CustomTranslationModel objects count 1 N/A test_no_translation_default_language N/A N/A self N/A N/A N/A m N/A FooModel title_en hello title_fr bonjour N/A N/A N/A m save N/A saved_lang N/A N/A translation get_language N/A N/A N/A translation activate it N/A N/A N/A self assertEqual N/A m title hello N/A N/A N/A translation activate saved_lang N/A test_prefetch_translations N/A N/A self N/A N/A N/A article N/A N/A self articles N/A 0 N/A N/A N/A self assertNumQueries 1 N/A N/A N/A N/A article prefetch_translations N/A N/A N/A self assertNumQueries 0 N/A N/A language N/A fr en N/A N/A title N/A getattr article N/A title_%s language N/A N/A N/A article clear_translations_cache N/A N/A N/A N/A article author clear_translations_cache N/A N/A N/A self assertNumQueries 2 N/A N/A N/A N/A article prefetch_translations author N/A N/A N/A self assertNumQueries 0 N/A N/A language N/A fr en N/A N/A title N/A getattr article N/A title_%s language N/A author_bio N/A getattr N/A article author N/A bio_%s language N/A test_prefetch_translations_with_no_translations N/A N/A self N/A N/A N/A m N/A FooModel N/A N/A N/A m save N/A N/A N/A m prefetch_translations N/A N/A N/A self assertEqual N/A m cached_translations_count 18 N/A test_prefetch_translations_parameters N/A N/A self N/A N/A N/A article N/A N/A self articles N/A 0 N/A N/A N/A article clear_translations_cache N/A N/A N/A self assertNumQueries 1 N/A N/A N/A N/A article prefetch_translations field_names N/A title N/A N/A N/A self assertNumQueries 0 N/A N/A language N/A fr en N/A N/A title N/A getattr article N/A title_%s language N/A N/A N/A self assertNumQueries 0 N/A N/A language N/A fr en N/A N/A N/A N/A self assertEqual N/A getattr article N/A content_%s language N/A N/A N/A article clear_translations_cache N/A N/A N/A self assertNumQueries 1 N/A N/A N/A N/A article prefetch_translations field_names N/A title populate_missing False N/A N/A N/A self assertNumQueries 0 N/A N/A language N/A fr en N/A N/A title N/A getattr article N/A title_%s language N/A N/A N/A self assertNumQueries 2 N/A N/A language N/A fr en N/A N/A N/A N/A self assertNotEqual N/A getattr article N/A content_%s language N/A N/A N/A article clear_translations_cache N/A N/A N/A self assertNumQueries 1 N/A N/A N/A N/A article prefetch_translations field_names N/A title languages N/A fr populate_missing False N/A N/A N/A self assertNumQueries 1 N/A N/A language N/A fr en N/A N/A title N/A getattr article N/A title_%s language N/A N/A N/A article clear_translations_cache N/A N/A N/A self assertNumQueries 1 N/A N/A N/A N/A article prefetch_translations field_names N/A title languages en populate_missing False N/A N/A N/A self assertNumQueries 1 N/A N/A language N/A fr en N/A N/A title N/A getattr article N/A title_%s language N/A N/A