8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d5ca7b commit d8182f2Copy full SHA for d8182f2
tests/admin_views/tests.py
@@ -1804,8 +1804,8 @@ def test_generic_relations(self):
1804
1805
"""
1806
plot = Plot.objects.get(pk=3)
1807
- FunkyTag.objects.create(content_object=plot, name='hott')
1808
- should_contain = """<li>Funky tag: <a href="/test_admin/admin/admin_views/funkytag/1/">hott"""
+ tag = FunkyTag.objects.create(content_object=plot, name='hott')
+ should_contain = """<li>Funky tag: <a href="/test_admin/admin/admin_views/funkytag/%s/">hott""" % tag.id
1809
response = self.client.get('/test_admin/admin/admin_views/plot/%s/delete/' % quote(3))
1810
self.assertContains(response, should_contain)
1811
0 commit comments