Skip to content
Advertisement

object data editting form

I’m making django app which allow me to study. It has multiple tests with multiple question each. Every question has one correct answer. I’m trying to make form which allow me to edit answer If I made mistake in passing correct answer during making question.

That’s what I have already made:

JavaScript
JavaScript
JavaScript
JavaScript

while I’m trying to edit answer i’m getting Question matching query does not exist. error. Where did i make mistake ?

Advertisement

Answer

Probably pk is None.
it is better you check your pk

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement