Web M&M
https://mam.matfyz.cz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
312 B
16 lines
312 B
10 years ago
|
from django import template
|
||
|
|
||
|
from seminar.models import Rocnik
|
||
|
|
||
|
register = template.Library()
|
||
|
|
||
|
@register.inclusion_tag('results.html')
|
||
|
def seminar_rocniky(parser, token):
|
||
|
return {
|
||
|
'rocniky': Rocnik.objects.all()
|
||
|
}
|
||
|
|
||
|
@register.assignment_tag
|
||
|
def aktualni_rocniky():
|
||
|
return Rocnik.objects.all()
|