Skip to content

Commit

Permalink
Revert "[#368] Add num_followers after validating the group_dict ag…
Browse files Browse the repository at this point in the history
…ainst a schema."

This reverts commit c81edd2.
  • Loading branch information
domoritz committed Mar 6, 2013
1 parent eb921d0 commit 92d8f7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckan/logic/action/get.py
Expand Up @@ -845,12 +845,12 @@ def _group_or_org_show(context, data_dict, is_org=False):
except AttributeError:
schema = group_plugin.db_to_form_schema()

if schema:
group_dict, errors = _validate(group_dict, schema, context=context)

group_dict['num_followers'] = logic.get_action('group_follower_count')(
{'model': model, 'session': model.Session},
{'id': group_dict['id']})

if schema:
group_dict, errors = _validate(group_dict, schema, context=context)
return group_dict


Expand Down

0 comments on commit 92d8f7d

Please sign in to comment.