parent
97446780dd
commit
64d025eacc
5 changed files with 22 additions and 27 deletions
@ -0,0 +1,5 @@ |
||||
{% for category in category_items %} |
||||
<div class="select__option js-select-option"> |
||||
<div class="select__title">{{ category.title }}</div> |
||||
</div> |
||||
{% endfor %} |
||||
@ -0,0 +1,11 @@ |
||||
from django import template |
||||
|
||||
from ..models import Category |
||||
|
||||
|
||||
register = template.Library() |
||||
|
||||
|
||||
@register.inclusion_tag('course/inclusion/category_items.html') |
||||
def category_items(): |
||||
return {"category_items": Category.manager.all()} |
||||
Loading…
Reference in new issue