diff --git a/c3l_membership/views.py b/c3l_membership/views.py --- a/c3l_membership/views.py +++ b/c3l_membership/views.py @@ -38,14 +38,13 @@ def index(): if current_app.config["DIGICASH_ENABLED"]: choices.append(("digicash", gettext("by DigiCash"))) - for cryptocurrency_label, options in current_app.config["CRYPTOCURRENCIES"].items(): - if options["ENABLED"]: - choices.append( - ( - cryptocurrency_label, - " ".join((gettext("by"), cryptocurrency_label.title())), - ), - ) + choices.extend( + (cryptocurrency_label, " ".join((gettext("by"), cryptocurrency_label.title()))) + for cryptocurrency_label, options in current_app.config[ + "CRYPTOCURRENCIES" + ].items() + if options["ENABLED"] + ) form.payment.choices = choices