diff --git a/passbook/stages/otp_time/stage.py b/passbook/stages/otp_time/stage.py index bd557cc66..182ea22c6 100644 --- a/passbook/stages/otp_time/stage.py +++ b/passbook/stages/otp_time/stage.py @@ -36,7 +36,9 @@ class OTPTimeStageView(FormView, StageView): qr_code = QRCode(image_factory=SvgFillImage) qr_code.add_data(device.config_url) svg_image = tostring(qr_code.make_image().get_image()) - sr_wrapper = f'
{force_str(svg_image)}
' + sr_wrapper = ( + f'
{force_str(svg_image)}
' + ) return sr_wrapper def get(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: diff --git a/passbook/stages/otp_time/templates/stages/otp_time/user_settings.html b/passbook/stages/otp_time/templates/stages/otp_time/user_settings.html index d3d0fd9db..b62df7707 100644 --- a/passbook/stages/otp_time/templates/stages/otp_time/user_settings.html +++ b/passbook/stages/otp_time/templates/stages/otp_time/user_settings.html @@ -22,7 +22,7 @@

{% if not state %} {% if stage.configure_flow %} - {% trans "Enable Time-based OTP" %} + {% trans "Enable Time-based OTP" %} {% endif %} {% else %} {% trans "Disable Time-based OTP" %}