﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30359	"Possible access to unintended variable in ""django/tests/contenttypes_tests/test_models.py"" line 128"	Petru-Florin Mihancea	nobody	"While experimenting with a CodeSonar plugin we develop, we noticed a potential bug in file ""django/tests/contenttypes_tests/test_models.py"" line 128 function test_get_for_concrete_model.

self.assertEqual(concrete_model_ct, ContentType.objects.get_for_model(DeferredProxyModel)) <<<<<<HERE
self.assertEqual(
            proxy_model_ct,
            ContentType.objects.get_for_model(DeferredProxyModel, for_concrete_model=False)

Shouldn't you use proxy_model_ct instead of concrete_model_ct in the first line (as it is used in the second)?

Thanks,
Petru-Florin Mihancea"	Bug	new	Uncategorized	dev	Normal				Unreviewed	0	0	0	0	0	0
