Skip to content

Commit

Permalink
[#3011] do not create default views on package_update
Browse files Browse the repository at this point in the history
  • Loading branch information
k-nut committed Jun 6, 2016
1 parent dd85519 commit f2537b1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ckan/logic/action/update.py
Expand Up @@ -307,13 +307,6 @@ def package_update(context, data_dict):

item.after_update(context, data)

# Create default views for resources if necessary
if data.get('resources'):
logic.get_action('package_create_default_resource_views')(
{'model': context['model'], 'user': context['user'],
'ignore_auth': True},
{'package': data})

if not context.get('defer_commit'):
model.repo.commit()

Expand Down

0 comments on commit f2537b1

Please sign in to comment.