[Fixed]-ValueError in Django when running "python manage.py test"

1👍

You have error in polls/migrations/0001_initial.py line no 36 to='polls.models.QUESTION'

field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='polls.models.QUESTION'),

it should be to='polls.Question'

field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='polls.Question'),

Leave a comment