-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add option to disallow voting after a specific date
implements #3
- Loading branch information
Showing
5 changed files
with
124 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from django.forms import DateField | ||
from django.utils.translation import gettext_lazy as _ | ||
from hierarkey.forms import HierarkeyForm | ||
from i18nfield.forms import I18nFormMixin | ||
|
||
|
||
class HalfnarpSettingsForm(I18nFormMixin, HierarkeyForm): | ||
halfnarp_allow_voting_until = DateField( | ||
help_text=_( | ||
"Voting closes at midnight at the selected day. If unset, " | ||
"voting is allowed until a schedule is released." | ||
), | ||
label=_("Allow votes until"), | ||
required=False, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters