Changes between Initial Version and Version 1 of Ticket #30359
- Timestamp:
- Apr 12, 2019, 7:55:22 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30359
- Property Component Uncategorized → contrib.contenttypes
- Property Resolution → invalid
- Property Status new → closed
-
Ticket #30359 – Description
initial v1 1 1 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. 2 2 {{{ 3 3 self.assertEqual(concrete_model_ct, ContentType.objects.get_for_model(DeferredProxyModel)) <<<<<<HERE 4 4 self.assertEqual( 5 5 proxy_model_ct, 6 6 ContentType.objects.get_for_model(DeferredProxyModel, for_concrete_model=False) 7 7 }}} 8 8 Shouldn't you use proxy_model_ct instead of concrete_model_ct in the first line (as it is used in the second)? 9 9