summaryrefslogtreecommitdiff
path: root/tests/admin_views/models.py
diff options
context:
space:
mode:
authorsarthakmeh <sarthakmeh03@gmail.com>2015-08-28 01:43:24 +0530
committerTim Graham <timograham@gmail.com>2015-09-03 10:08:51 -0400
commit40bf18e70282784c7923a89c0700a83118b81a50 (patch)
tree2c73860b68cf621d70dbba4a13683e0fbae1f2fb /tests/admin_views/models.py
parent12083c5d47a8db1193e401fca1520da5d4a31668 (diff)
Fixed #25058 -- Added GenericRelations with related_query_name to the admin's delete confirmation page.
Diffstat (limited to 'tests/admin_views/models.py')
-rw-r--r--tests/admin_views/models.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/admin_views/models.py b/tests/admin_views/models.py
index fd1b8b33a3..1199da3973 100644
--- a/tests/admin_views/models.py
+++ b/tests/admin_views/models.py
@@ -557,6 +557,15 @@ class SuperSecretHideout(models.Model):
@python_2_unicode_compatible
+class Bookmark(models.Model):
+ name = models.CharField(max_length=60)
+ tag = GenericRelation(FunkyTag, related_query_name='bookmark')
+
+ def __str__(self):
+ return self.name
+
+
+@python_2_unicode_compatible
class CyclicOne(models.Model):
name = models.CharField(max_length=25)
two = models.ForeignKey('CyclicTwo', models.CASCADE)