Fix bug in batch download URL

This commit is contained in:
Lance Edgar 2016-08-17 16:51:31 -05:00
parent 3c3aa5f2b1
commit 3b265e19c4

View file

@ -927,7 +927,7 @@ class FileBatchMasterView(BatchMasterView):
model_title = cls.get_model_title() model_title = cls.get_model_title()
# download batch data file # download batch data file
config.add_route('{}.download'.format(route_prefix), '{}{{uuid}}/download'.format(url_prefix)) config.add_route('{}.download'.format(route_prefix), '{}/{{uuid}}/download'.format(url_prefix))
config.add_view(cls, attr='download', route_name='{}.download'.format(route_prefix), config.add_view(cls, attr='download', route_name='{}.download'.format(route_prefix),
permission='{}.download'.format(permission_prefix)) permission='{}.download'.format(permission_prefix))
config.add_tailbone_permission(permission_prefix, '{}.download'.format(permission_prefix), config.add_tailbone_permission(permission_prefix, '{}.download'.format(permission_prefix),