Fix clone config bug for label batches
This commit is contained in:
parent
3c3300a541
commit
4f2bf5431d
|
@ -1033,14 +1033,6 @@ class BatchMasterView(MasterView):
|
|||
config.add_tailbone_permission(permission_prefix, '{}.csv'.format(permission_prefix),
|
||||
"Download {} rows as CSV".format(model_title))
|
||||
|
||||
# clone as new batch
|
||||
if cls.cloneable:
|
||||
config.add_route('{}.clone'.format(route_prefix), '{}/{{uuid}}/clone'.format(url_prefix))
|
||||
config.add_view(cls, attr='clone', route_name='{}.clone'.format(route_prefix),
|
||||
permission='{}.clone'.format(permission_prefix))
|
||||
config.add_tailbone_permission(permission_prefix, '{}.clone'.format(permission_prefix),
|
||||
"Clone {} as new batch".format(model_title))
|
||||
|
||||
|
||||
class FileBatchMasterView(BatchMasterView):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue