Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1433-fix-context'
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Jan 28, 2014
2 parents 687491d + 306c3d8 commit ff2bb1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ckan/controllers/group.py
Expand Up @@ -857,9 +857,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 ff2bb1d

Please sign in to comment.