

def test_lookup_by_translated_field_requires_translation_aware_manager(self):
    en = Normal.objects.language('en').get(pk=en.normal_id[1])
    with translation.override('en'):
        self.assertRaises(WrongManager, Standard.objects.get, normal__translated_field=en.translated_field)

dataset/ETHPy150Open KristianOellegaard/django-hvad/hvad/tests/related.py StandardToTransFKTest.test_lookup_by_translated_field_requires_translation_aware_manager/VarMisuse@25/38 `self`->`en`