lino_xl.lib.votes

Adds voting functionality.

See votes: User opinions.

Classes

Plugin(site, app_label, app_name, ...)

See lino.core.plugin.Plugin.

class lino_xl.lib.votes.Plugin(site, app_label, app_name, app_module, needed_by)

Bases: Plugin

See lino.core.plugin.Plugin.

votable_model = 'tickets.Ticket'

The things we are voting about. A string referring to the model that represents a votable in your application.

Default value is 'tickets.Ticket' (referring to lino_xl.lib.tickets.Ticket).

use_candidatures = False

Whether to use votes for implementing a kind of polling: when somebody posts a ticket, other users are asked to vote on it, deciding whether they take it or not.