@register.assignment_tag(takes_context=True)<EOL>def items_purchased(context, category=None):
return ItemController(user_for_context(context)).items_purchased(<EOL>category=category<EOL>)<EOL>
Returns the items purchased for this user.

    The user will be either `context.user`, and `context.request.user` if
    the former is not defined.