Documentation for developers

Models in database

class application.models.VoteFact(id, variant, author, created_at)[source]
exception DoesNotExist
exception MultipleObjectsReturned
class application.models.VoteVariant(id, voting, description)[source]
exception DoesNotExist
exception MultipleObjectsReturned
class application.models.Voting(*args, **kwargs)[source]

Base voting model

Parameters
  • author – creator of Voting :class: ‘int’

  • title – header of Voting

  • publish_at – the date of start Voting

  • finished_at – the date of end Voting

exception DoesNotExist
exception MultipleObjectsReturned