[Fixed]-Django db query not behaving the same way in views.py and shell

1πŸ‘

βœ…

It looks like you have replaced VolInterview with a different class in your views.

To check, you can add print(VolInterview) to your view and the shell, and check that you get the same result in both.

In Django, it is common to use Form as a suffix for your form classes, e.g. VolInterviewForm, so that the model and form names do not clash.

πŸ‘€Alasdair

Leave a comment