Convenience Helpers

QuerySet and Manager Classes

class bridgekeeper.querysets.PermissionQuerySet(model=None, query=None, using=None, hints=None)

A QuerySet subclass that provides a convenience method.

visible_to(user, permission)

Filter the QuerySet to objects a user has a permission for.


This method only works with permissions that are defined in perms; regular Django row-level permission checkers can’t be invoked on the QuerySet level.

It is a convenience wrapper around filter().

View Mixins