diff options
| author | Arthur Rio <arthurio@users.noreply.github.com> | 2019-01-16 16:07:28 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-01-16 10:07:28 -0500 |
| commit | 181fb60159e54d442d3610f4afba6f066a6dac05 (patch) | |
| tree | 087646be10e537b2a9808e5351d30bd489e76273 /tests/admin_views/models.py | |
| parent | dbcf2ffa77af24642c035c58199e6058d91d8e35 (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.py | 6 |
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 |
