Skip to content

Commit

Permalink
[#1433] Flesh out the context for group/about setup_template_variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read authored and amercader committed Jan 28, 2014
1 parent aaa82aa commit a1cf7a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ckan/controllers/group.py
Expand Up @@ -856,9 +856,12 @@ def admins(self, id):
return render(self._admins_template(c.group_dict['type']))

def about(self, id):
context = {'model': model, 'session': model.Session,
'user': c.user or c.author}
c.group_dict = self._get_group_dict(id)
group_type = c.group_dict['type']
self._setup_template_variables({}, {'id': id}, group_type=group_type)
self._setup_template_variables(context, {'id': id},
group_type=group_type)
return render(self._about_template(group_type))

def _get_group_dict(self, id):
Expand Down

0 comments on commit a1cf7a8

Please sign in to comment.