This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf import settings | |
from django.contrib.contenttypes.models import ContentType | |
from django.contrib.auth.models import User, AnonymousUser | |
from django.utils.importlib import import_module | |
class ObjectPermissionBackend(object): | |
supports_object_permissions = True | |
supports_anonymous_user = True | |
supports_inactive_user = True |