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.
15 lines
308 B
15 lines
308 B
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.simple_tag
|
|
def aktualni_rocniky():
|
|
return Rocnik.objects.all()
|
|
|