summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/generic_relations_regress/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/generic_relations_regress/tests.py b/tests/generic_relations_regress/tests.py
index 93eac5292b..2804530f84 100644
--- a/tests/generic_relations_regress/tests.py
+++ b/tests/generic_relations_regress/tests.py
@@ -260,3 +260,7 @@ class GenericRelationTests(TestCase):
# where the pre_delete signal should fire and prevent deletion.
with self.assertRaises(ProtectedError):
related.delete()
+
+ def test_ticket_22982(self):
+ place = Place.objects.create(name='My Place')
+ self.assertIn('GenericRelatedObjectManager', str(place.links))