Files @ c192fef491c4
Branch filter:

Location: symposion_app/registrasion/templatetags/registrasion_tags.py

Christopher Neugebauer
Adds basic template tag for available categories. Currently does not check enabling conditions.
from registrasion import models as rego

from django import template

register = template.Library()

@register.assignment_tag(takes_context=True)
def available_categories(context):
    ''' Returns all of the available product categories '''
    return rego.Category.objects.all()