Sunday, March 11, 2012

Re: Multiple Choice Quiz

Thanks for responding Shawn. I guess I was thinking that if I wanted
to save the user's responses and the correct answers a different model
would be needed for both.

On Mar 11, 4:11 pm, Shawn Milochik <sh...@milochik.com> wrote:
> I think I'd do this:
>
> Models:
>
>      Question
>          question text
>
>      Answer
>          question foreign key
>          answer text
>          correct (boolean)
>
>      Guess
>          user foreign key
>          answer foreign key
>
> That should be all you need (along with the User model or your own
> method of tracking unique users without forcing them to register).
>
> I don't understand what your fourth model is for.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate