class AclSerializerMixin object def to_native self obj ret super AclSe

1
2
3
4
5
6
7
class AclSerializerMixin(object):
def to_native(self, obj):
ret = super(AclSerializerMixin, self).to_native(obj)
request = self.context.get('request', None)
if obj:
ret['_permissions'] = manager.get_perm_list(obj, request.user)
return ret