8 lines
194 B
Python
8 lines
194 B
Python
from django import template
|
|
|
|
register = template.Library()
|
|
|
|
@register.simple_tag(takes_context=True)
|
|
def other_activities(context):
|
|
return context["user"].activity_set.filter(category=None)
|