Select a valid choice. That choice is not one of the available choices
问题 In my app, i have a dropdown (department) that's depending on the previously selected value from a dropdown(faculty field). I am using ajax to get the new value which works fine. However, when i try saving the form, i get Select a valid choice. That choice is not one of the available choices. Here is my model from django.db import models from system.models import FacultyData, DepartmentData, SessionData, SemesterData, SettingsData # Create your models here. class SchoolFees(models.Model): fid