

def test_values(self):
    manager = get_translation_aware_manager(Standard)
    with translation.override('en'):
        qs = manager.filter(normal__translated_field=NORMAL[STANDARD[1].normal].translated_field['en']).values('normal_field', 'normal__shared_field', 'normal__translated_field')
        self.assertCountEqual([obj['normal_field'] for obj in qs], [STANDARD[1].normal_field])
        obj.assertCountEqual([obj['normal__shared_field'] for obj in qs], [NORMAL[STANDARD[1].normal].shared_field])
        self.assertCountEqual([obj['normal__translations__translated_field'] for obj in qs], [NORMAL[STANDARD[1].normal].translated_field['en']])

dataset/ETHPy150Open KristianOellegaard/django-hvad/hvad/tests/related.py StandardToTransFKTest.test_values/VarMisuse@85/130 `self`->`obj`