Ejemplo n.º 1
0
	def current(self):
		q = None
		if get_current_year() is not None:
			q = get_current_year().modules.all()
		if get_current_semester() is not None:
			q = q | get_current_semester().modules.all()
		return q
Ejemplo n.º 2
0
def current_year(request):
	from myuni.timeperiods.utils import get_current_year
	return {'current_year': get_current_year()}
Ejemplo n.º 3
0
def current_year(request):
    from myuni.timeperiods.utils import get_current_year
    return {'current_year': get_current_year()}