Jonas Havelka
3 years ago
1 changed files with 0 additions and 15 deletions
@ -1,15 +0,0 @@ |
|||||
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() |
|
Loading…
Reference in new issue