diff options
| author | Adam Johnson <me@adamj.eu> | 2024-04-29 16:06:39 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-05-07 14:25:51 +0200 |
| commit | 7abe5112f4cb50c15b79a2afd4c1b68f0767b243 (patch) | |
| tree | 553809a2bff3c753b72288262a55d09fd8f883c9 /tests/model_meta/models.py | |
| parent | ceea86baa36b91d0002911770340a2d7bd4f64b7 (diff) | |
Fixed #35407 -- Cached model's Options.swapped.
Diffstat (limited to 'tests/model_meta/models.py')
| -rw-r--r-- | tests/model_meta/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/model_meta/models.py b/tests/model_meta/models.py index bc69d61a59..20a75baf4f 100644 --- a/tests/model_meta/models.py +++ b/tests/model_meta/models.py @@ -166,6 +166,11 @@ class Relating(models.Model): people_hidden = models.ManyToManyField(Person, related_name="+") +class Swappable(models.Model): + class Meta: + swappable = "MODEL_META_TESTS_SWAPPED" + + # ParentListTests models class CommonAncestor(models.Model): pass |
