[Answered ]-"Key 'current' not found in 'InputForm'. Choices are: ." in Djangoforms

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']

Leave a comment