web_AI-5/django/didgeridoo/currencies/forms.py

18 lines
462 B
Python
Raw Normal View History

2018-01-28 20:24:35 +01:00
from django import forms
from currencies.models import ExchangeRate_name
class CurrenciesForm(forms.Form):
currencies = forms.ModelChoiceField(
queryset=ExchangeRate_name.objects.all(),
2018-02-28 01:23:20 +01:00
required=False,
empty_label='CHF',
label='CURENCIES',
widget=forms.Select(
attrs={
'onchange': 'currency.submit();',
'class': 'btn-primary dropdown-toggle'
}
)
)