Anpassungen für das Hosting bei Djangoeurope und damit verbundenen Versionen Django 1.8 und Python 2.7
This commit is contained in:
committed by
Christian Berg
parent
cb4b15b3c6
commit
b96b485b61
15
src/events/context_processors.py
Normal file
15
src/events/context_processors.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# -*- encoding: UTF-8 -*-
|
||||
"""
|
||||
Created on 30.09.2011
|
||||
|
||||
@author: christian
|
||||
"""
|
||||
from . import models
|
||||
|
||||
|
||||
def upcoming_events(request):
|
||||
return {
|
||||
'current_event': models.Event.objects.current_event(),
|
||||
'next_event': models.Event.objects.next_event(),
|
||||
'upcoming_events': models.Event.objects.upcoming(),
|
||||
}
|
||||
Reference in New Issue
Block a user