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',
|
2018-02-28 21:47:19 +01:00
|
|
|
# widget=forms.Select(
|
|
|
|
# attrs={
|
|
|
|
# 'onchange': 'currency.submit();',
|
|
|
|
# 'class': 'btn-primary dropdown-toggle'
|
|
|
|
# }
|
|
|
|
#)
|
2018-02-28 01:23:20 +01:00
|
|
|
)
|