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

18 lines
487 B
Python
Raw Normal View History

2018-01-28 20:24:35 +01:00
from django import forms
2018-02-28 21:05:27 +01:00
from currencies.models import ExchangeRate, ExchangeRate_name
2018-01-28 20:24:35 +01:00
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'
# }
#)
2018-02-28 01:23:20 +01:00
)