1👍
✅
The problem is with this line of code:
TrainerFormSet = modelformset_factory(Trainer)
Because he doesn’t know what Trainer
is. You have to import your models into the views. Add this to the top of the views.py file, and everything will work:
from models import *
👤yuvi
Source:stackexchange.com