drought_backup/policy/form.py

11 lines
202 B
Python
Raw Normal View History

2018-07-09 15:00:48 +00:00
from django.forms import forms
from policy.models import DroughtSpi
class DroughtSpiForm(forms.Model):
class Meta:
model = DroughtSpi
fields = ['code', 'year', 'month', 'value']