add a form for a currency drop down

This commit is contained in:
Andreas Zweili 2018-01-28 20:24:35 +01:00
parent 363d0cd053
commit faba1a597d
1 changed files with 8 additions and 0 deletions

View File

@ -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)