Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More
lino_xl.lib.votes¶
Adds voting functionality.
See votes: User opinions.
Classes
|
- class lino_xl.lib.votes.Plugin(site, app_label, app_name, app_module, needed_by, configs: dict)¶
Bases:
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 tolino_xl.lib.tickets.Ticket
).
- with_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.