diff --git a/ennstatus/donate/views.py b/ennstatus/donate/views.py --- a/ennstatus/donate/views.py +++ b/ennstatus/donate/views.py @@ -7,6 +7,13 @@ from ennstatus.donate.functions import l from ennstatus.root.forms import BPMForm from ennstatus.root.constants import BPM_ADDRESSES +COUNTRIES = [ + ('luxembourg', 'Luxembourg'), + ('belgium', 'Belgium'), + ('france', 'France'), + ('germany', 'Germany'), +] + donate_page = Blueprint('donate', __name__) @@ -15,6 +22,7 @@ def index(): current_app.logger.info('Handling index') form = BPMForm() + form.country.choices = COUNTRIES country_choices = [choice[0] for choice in form.country.choices] if request.method == 'POST':