diff --git a/django/didgeridoo/currencies/forms.py b/django/didgeridoo/currencies/forms.py new file mode 100644 index 0000000..5acf450 --- /dev/null +++ b/django/didgeridoo/currencies/forms.py @@ -0,0 +1,7 @@ +from django import forms +from currencies.models import ExchangeRate_name + + +class CurrencyForm(forms.Form): + currencies = forms.ModelChoiceField( + queryset=ExchangeRate_name.objects.all()) diff --git a/django/didgeridoo/currencies/models.py b/django/didgeridoo/currencies/models.py index 73a09ba..5ee16ef 100644 --- a/django/didgeridoo/currencies/models.py +++ b/django/didgeridoo/currencies/models.py @@ -1,4 +1,5 @@ from django.db import models +from django.core.urlresolvers import reverse from decimal import Decimal import datetime diff --git a/django/didgeridoo/currencies/templates/currencies/index.html b/django/didgeridoo/currencies/templates/currencies/index.html index 2ab0e02..2f28ccb 100644 --- a/django/didgeridoo/currencies/templates/currencies/index.html +++ b/django/didgeridoo/currencies/templates/currencies/index.html @@ -1,10 +1,6 @@ - -
- - - -