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/auth_tests/models/proxy.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/auth_tests/models/proxy.py')
| -rw-r--r-- | tests/auth_tests/models/proxy.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auth_tests/models/proxy.py b/tests/auth_tests/models/proxy.py new file mode 100644 index 0000000000..9e82a398c2 --- /dev/null +++ b/tests/auth_tests/models/proxy.py @@ -0,0 +1,22 @@ +from django.contrib.auth.models import User +from django.db import models + + +class Concrete(models.Model): + pass + + +class Proxy(Concrete): + class Meta: + proxy = True + permissions = ( + ('display_proxys', 'May display proxys information'), + ) + + +class UserProxy(User): + class Meta: + proxy = True + permissions = ( + ('use_different_app_label', 'May use a different app label'), + ) |
