diff options
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'), + ) |
