Skip to content

Commit

Permalink
Added template tag to get all unjoined groups
Browse files Browse the repository at this point in the history
  • Loading branch information
yashwanthbabu committed Sep 11, 2014
1 parent 78c1ea9 commit 0015d30
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tavern/templatetags/tavern_unjoined_filters.py
@@ -0,0 +1,11 @@
from django import template

from tavern.models import get_unjoined_groups

register = template.Library()


@register.assignment_tag
def get_user_tavern_unjoined_groups(user):
user_unjoined_groups = get_unjoined_groups(user)
return user_unjoined_groups

0 comments on commit 0015d30

Please sign in to comment.