Skip to content

Commit

Permalink
Fixing travis errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yashwanthbabu committed Sep 12, 2014
1 parent a884a36 commit 2cfc3e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tavern/templatetags/tavern_unjoined_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ def __init__(self, user, var_name):
self.user = template.Variable(user)
self.var_name = var_name

def render(self,context):
def render(self, context):
user = self.user.resolve(context)
user_unjoined_groups = get_unjoined_groups(user)
context[self.var_name] = user_unjoined_groups
return ''


@register.tag
def get_user_tavern_unjoined_groups(parser,token):
def get_user_tavern_unjoined_groups(parser, token):
tag_name, arg = token.contents.split(None, 1)
m = re.search(r'for (\w+.\w+) as (\w+)', arg)
user, var_name = m.groups()
Expand Down

0 comments on commit 2cfc3e2

Please sign in to comment.