From faba1a597d6ea946b24f3c04d31bcb7967e10e9c Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sun, 28 Jan 2018 20:24:35 +0100 Subject: [PATCH] add a form for a currency drop down --- django/didgeridoo/currencies/forms.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 django/didgeridoo/currencies/forms.py diff --git a/django/didgeridoo/currencies/forms.py b/django/didgeridoo/currencies/forms.py new file mode 100644 index 0000000..23723cd --- /dev/null +++ b/django/didgeridoo/currencies/forms.py @@ -0,0 +1,8 @@ +from django import forms +from currencies.models import ExchangeRate_name + + +class CurrenciesForm(forms.Form): + currencies = forms.ModelChoiceField( + queryset=ExchangeRate_name.objects.all(), + required=False)