79499698

Date: 2025-03-11 05:06:49
Score: 3
Natty:
Report link

I just face the same problem. There's probably not id but instance. You'll may resolve relate form's model to database table's Model

forms.py

from .models import DbTable # DbTable is your database table

def StudentRequestForm(forms.ModelForm):
/* your many forms */
class Meta:
    model = DbTable
    fields = '__all__' 
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): face the same problem
  • Low reputation (1):
Posted by: BRSO