This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add richer filters for Event content listing plugin
- filter events shown in listing by primary/secondary `EventType` - filter events shown in listing to those with occurrences within given start/end datetimes - filter events shown in listing to those with occurrences that end after N days ago, and/or start before N days hence.
- Loading branch information
Showing
2 changed files
with
98 additions
and
1 deletion.
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
40 changes: 40 additions & 0 deletions
40
icekit_events/plugins/event_content_listing/migrations/0002_auto_20170222_1136.py
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,40 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('icekit_events', '0016_auto_20161208_0030'), | ||
('ik_event_listing', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='eventcontentlistingitem', | ||
name='from_date', | ||
field=models.DateTimeField(help_text=b'Only show events with occurrences that end after this date and time.', null=True, blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='eventcontentlistingitem', | ||
name='from_days_ago', | ||
field=models.IntegerField(help_text=b'Only show events with occurrences after this number of days into the past. Set this to zero to show only events with future occurrences.', null=True, blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='eventcontentlistingitem', | ||
name='limit_to_types', | ||
field=models.ManyToManyField(help_text=b'Leave empty to show all events.', to='icekit_events.EventType', db_table=b'ik_event_listing_types', blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='eventcontentlistingitem', | ||
name='to_date', | ||
field=models.DateTimeField(help_text=b'Only show events with occurrences that start before this date and time.', null=True, blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='eventcontentlistingitem', | ||
name='to_days_ahead', | ||
field=models.IntegerField(help_text=b'Only show events with occurrences before this number of days into the future. Set this to zero to show only events with past occurrences.', null=True, blank=True), | ||
), | ||
] |