18 lines
462 B
Python
18 lines
462 B
Python
from django import forms
|
|
from currencies.models import ExchangeRate_name
|
|
|
|
|
|
class CurrenciesForm(forms.Form):
|
|
currencies = forms.ModelChoiceField(
|
|
queryset=ExchangeRate_name.objects.all(),
|
|
required=False,
|
|
empty_label='CHF',
|
|
label='CURENCIES',
|
|
widget=forms.Select(
|
|
attrs={
|
|
'onchange': 'currency.submit();',
|
|
'class': 'btn-primary dropdown-toggle'
|
|
}
|
|
)
|
|
)
|