18 lines
487 B
Python
18 lines
487 B
Python
from django import forms
|
|
from currencies.models import ExchangeRate, 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'
|
|
# }
|
|
#)
|
|
)
|