mirror of
https://github.com/django/django.git
synced 2025-10-27 15:46:10 +00:00
Fixed #19049 -- Ensure that swapped models aren't included in reverse field caches.
Thanks to Ivan Virabyan for the report.
This commit is contained in:
@@ -37,7 +37,7 @@ class InvalidModelTestCase(unittest.TestCase):
|
||||
# easier to set this up as an override than to require every developer
|
||||
# to specify a value in their test settings.
|
||||
@override_settings(
|
||||
TEST_SWAPPED_MODEL='invalid_models.Target',
|
||||
TEST_SWAPPED_MODEL='invalid_models.ReplacementModel',
|
||||
TEST_SWAPPED_MODEL_BAD_VALUE='not-a-model',
|
||||
TEST_SWAPPED_MODEL_BAD_MODEL='not_an_app.Target',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user