Fix template bug when master view has no "delete selected" feature

This commit is contained in:
Lance Edgar 2019-02-02 20:15:28 -06:00
parent 22c71d832e
commit d67a2e60fe

View file

@ -113,7 +113,7 @@
% endif
## delete selected objects
% if request.has_perm('{}.delete_set'.format(permission_prefix)):
% if master.set_deletable and request.has_perm('{}.delete_set'.format(permission_prefix)):
${h.form(url('{}.delete_set'.format(route_prefix)), name='delete-set')}
${h.csrf_token(request)}
${h.hidden('uuids')}