jbrg / quizbase

2 stars 0 forks source link

DoesNotExist if the first choice is not the correct one #7

Closed jbrg closed 12 years ago

jbrg commented 12 years ago

DoesNotExist error when correcting questions where the first choice is wrong. The CorrectAnswer object does exist in the database so the problem is most likely related to how we check for it.

jbrg commented 12 years ago

Turns out it didn't have anything to do with in which order the choices were added, the problem was that the code assumed the CorrectAnswer object had the same id as the question. Fix'd