-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1048 from Integreat/feature/events
Add filter options to event filter, fixes #992
- Loading branch information
Showing
13 changed files
with
408 additions
and
271 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
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,24 @@ | ||
""" | ||
This module contains all string representations of event time range filter options, used by | ||
:class:`~integreat_cms.cms.forms.events.event_filter_form.EventFilterForm` and | ||
:class:`~integreat_cms.cms.views.events.event_list_view.EventListView`. | ||
""" | ||
from django.utils.translation import ugettext_lazy as _ | ||
|
||
|
||
#: Events in the future | ||
UPCOMING = "UPCOMING" | ||
#: Events in the past | ||
PAST = "PAST" | ||
#: Events in a custom time range | ||
CUSTOM = "CUSTOM" | ||
|
||
#: Choices which indicate that no filtering is required | ||
ALL_EVENTS = [UPCOMING, PAST] | ||
|
||
#: Choices to use these constants in a form field | ||
CHOICES = ( | ||
(CUSTOM, _("Custom time range")), | ||
(UPCOMING, _("Upcoming events")), | ||
(PAST, _("Past events")), | ||
) |
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
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
Oops, something went wrong.