Remove moved method and unused import
This commit is contained in:
@@ -11,7 +11,6 @@ from django.core.exceptions import PermissionDenied
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.core.exceptions import ObjectDoesNotExist
|
||||
from django.shortcuts import get_object_or_404
|
||||
from django.template.defaultfilters import capfirst
|
||||
|
||||
from permissions.models import StoredPermission
|
||||
|
||||
@@ -24,7 +23,6 @@ class AccessEntry(models.Model):
|
||||
'''
|
||||
Model that hold the permission, object, actor relationship
|
||||
'''
|
||||
|
||||
permission = models.ForeignKey(StoredPermission, verbose_name=_(u'permission'))
|
||||
|
||||
holder_type = models.ForeignKey(
|
||||
@@ -63,11 +61,6 @@ class DefaultAccessEntry(models.Model):
|
||||
Model that holds the permission, class, actor relationship, that will
|
||||
be added upon the creation of an instance of said class
|
||||
'''
|
||||
|
||||
@classmethod
|
||||
def get_classes(cls):
|
||||
return [AccessObjectClass.encapsulate(cls) for cls in _class_permissions.keys()]
|
||||
|
||||
permission = models.ForeignKey(StoredPermission, verbose_name=_(u'permission'))
|
||||
|
||||
holder_type = models.ForeignKey(
|
||||
|
||||
Reference in New Issue
Block a user