23 lines
446 B
Python
23 lines
446 B
Python
|
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'),
|
||
|
)
|