PollManager

Qualified name: intranet.apps.polls.models.PollManager

class intranet.apps.polls.models.PollManager(*args, **kwargs)[source]

Bases: Manager

Methods

get_queryset

visible_to_user

Get a list of visible polls for a given user (usually request.user).

Attributes

visible_to_user(user)[source]

Get a list of visible polls for a given user (usually request.user).

These visible polls will be those that either have no groups assigned to them (and are therefore public) or those in which the user is a member.