Pull requests

#20 Merged
Repository
akava akava
Branch
default
Repository
slav0nic slav0nic
Branch
default

#245 pool logic smail refactoring

Author
  1. Andrei Kavaleu
Reviewers
Description
  • Added validation for non zero values to PollForm.choice_count field (as models.PositiveSmallIntegerField allows zero values, so the validation added explicitly)
  • PollForm.create_poll() renamed to PollForm.has_pool()
  • Pool.auto_deactivate() renamed to Pool.deactivate_if_expired()
  • "poll.choice_count == 1" extracted to poll.single_choice()

Comments (0)