1👍
✅
The InputForm should be extending ModelForm if you are trying to create a form based off of a model. You can learn more about model forms here
from django.forms import ModelForm
from .models import *
class InputForm(ModelForm):
class Meta:
model = flightInfo
fields = ['airCode', 'start_date', 'day7', 'current']
Source:stackexchange.com