mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
Back to 12 month query
This commit is contained in:
@@ -17,7 +17,7 @@ class CalendarICS(ICalFeed):
|
||||
|
||||
def items(self):
|
||||
#include events from up to 3 months ago
|
||||
start = datetime.datetime.now() - datetime.timedelta(days=31*3)
|
||||
start = datetime.datetime.now() - datetime.timedelta(days=365)
|
||||
filter = Q(start_date__gte=start)
|
||||
|
||||
return models.Event.objects.filter(filter).order_by('-start_date').select_related('person', 'organisation', 'venue', 'mic')
|
||||
|
||||
Reference in New Issue
Block a user