# HG changeset patch # User Dennis Fink # Date 2015-10-16 20:29:27 # Node ID ae85f67539b65de4351fe364ec3f746d3815366c # Parent 96fbef5fcac362997601fb98e0ea3e38fede0df8 Remove united kingdom and united states in BPM form from the donate page 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':