Aha! thanks. I should have one model that contains the student and the
score.
Then I can use a form for the each student to fill out, and a formset
for the teacher to provide the scores for each student in the class.

That makes sense (I hope I'm understanding you correctly).
Thanks for taking the time to set me straight.
--Tim

On Feb 5, 10:03 am, Preston Holmes <pres...@ptone.com> wrote:
> Assuming you want to create a score per class - you should have
> students go to a form that:
>
> creates a student and first score if student does not already exist
>
> creates a score for the student for that class and date
>
> Basically the students should be creating the 'blank' scores when they
> come in.
>
> -Preston
>
> On Feb 5, 5:35 am, Tim Arnold <a_j...@bellsouth.net> wrote:
>
>
>
> > On Feb 4, 4:07 pm, Tim Arnold <a_j...@bellsouth.net> wrote:
>
> > > I'm creating a form that students fill in as they arrive at class.
> > > Just name, email, etc.
> > > When the class is over I want to display a form for the teacher to
> > > enter the grades.
>
> > > So, no problem on the students entering their info, I just have a
> > > Student model.
> > > I have a Score model that has the score and a ForeignKey to the
> > > student.
>
> > > That makes sense to me, but I'm have bunches of trouble figuring out
> > > how to display the form to the teacher
>
> > > I want a list of student names with an <input> form for each grade. So
> > > I'm figuring a formset is what I need, based on the Score model. But I
> > > don't get how to associate the student with the score the teacher
> > > enters.
>
> > > thanks for any pointers.
> > > --Tim Arnold
>
> > To make my question more clear, what I don't know how to do is to
> > display the student objects on the same page as a list of Score forms
> > and connect each entered score to the Student object.
> > thanks,
> > --Tim

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

Reply via email to