drought/policy/form.py

11 lines
202 B
Python

from django.forms import forms
from policy.models import DroughtSpi
class DroughtSpiForm(forms.Model):
class Meta:
model = DroughtSpi
fields = ['code', 'year', 'month', 'value']