summaryrefslogtreecommitdiff
path: root/tests/admin_views/models.py
diff options
context:
space:
mode:
authorArthur Rio <arthurio@users.noreply.github.com>2019-01-16 16:07:28 +0100
committerTim Graham <timograham@gmail.com>2019-01-16 10:07:28 -0500
commit181fb60159e54d442d3610f4afba6f066a6dac05 (patch)
tree087646be10e537b2a9808e5351d30bd489e76273 /tests/admin_views/models.py
parentdbcf2ffa77af24642c035c58199e6058d91d8e35 (diff)
Fixed #11154, #22270 -- Made proxy model permissions use correct content type.
Co-Authored-By: Simon Charette <charette.s@gmail.com> Co-Authored-By: Antoine Catton <acatton@fusionbox.com>
Diffstat (limited to 'tests/admin_views/models.py')
-rw-r--r--tests/admin_views/models.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/admin_views/models.py b/tests/admin_views/models.py
index eef8106df4..d134b34923 100644
--- a/tests/admin_views/models.py
+++ b/tests/admin_views/models.py
@@ -976,3 +976,9 @@ class Author(models.Model):
class Authorship(models.Model):
book = models.ForeignKey(Book, models.CASCADE)
author = models.ForeignKey(Author, models.CASCADE)
+
+
+class UserProxy(User):
+ """Proxy a model with a different app_label."""
+ class Meta:
+ proxy = True