PEP8 cleanup, remove unused imports, fix permission check when removing metadata from a document
This commit is contained in:
@@ -64,7 +64,8 @@ def smart_link_instances_for_document(request, document_id):
|
||||
queryset = SmartLink.objects.get_for(document)
|
||||
except Exception as exception:
|
||||
queryset = []
|
||||
messages.error(request, _('Error calculating smart link for: %(document)s; %(exception)s.') %
|
||||
messages.error(
|
||||
request, _('Error calculating smart link for: %(document)s; %(exception)s.') %
|
||||
{'document': document, 'exception': exception}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user