diff --git a/app_doc/views.py b/app_doc/views.py index e296044..18c015c 100644 --- a/app_doc/views.py +++ b/app_doc/views.py @@ -1174,8 +1174,9 @@ def manage_attachment(request): for i in formats: size /= unit if size < unit: - return f'{round(size, precision)}{i}' - return f'{round(size, precision)}{i}' + r = '{}{}'.format(round(size, precision),i) + return r + if request.method == 'GET': try: search_kw = request.GET.get('kw', None)