summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJacob Haslehurst <jacob@haslehurst.net>2014-08-07 16:06:44 +1000
committerTim Graham <timograham@gmail.com>2014-08-07 14:44:20 -0400
commitf676305ecede116332884ea682fc953c29813232 (patch)
tree3e49c55b5dfad015410bf7b57d4b80178f28098c /tests
parentf9f9f3ad6073c353af924ed90c9386efd7bde8ac (diff)
Fixed #22982 -- Added GenericRelatedObjectManager.__str__. to prevent crash.
Thanks bendavis78 for the report. Forwardport of 29585e9b6a from stable/1.7.x
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))