@login_required
def show_attachment(request, hash):
    attachment = get_object_or_404(Attachment, hash=hash)
    file_data = open(attachment.get_absolute_path(), 'rb').read()
    response = HttpResponse(file_data, content_type=attachment.content_type)
    response['Content-Disposition'] = smart_str(attachment.name % 'attachment; filename="%s"')
    return response
dataset/ETHPy150Open slav0nic/djangobb/djangobb_forum/views.py/show_attachment/swapped operands of `%`