Hello

Given the following models:

CHOICES = (
    (0, u'AM'),
    (1, u'PM'),
)

class Person(models.Model):
    first_name = models.CharField(max_length=255)
    last_name = models.CharField(max_length=255)

class PersonStuff(models.Model):
    person = models.ForeignKey(Person)
    stuff = model.CharField(max_length=255, choices=CHOICES)

How should I go about trying to create a form that looks like this:

PersonA    stuff
PersonB    stuff
PersonC    stuff
PersonD    stuff
PersonE    stuff
PersonF    stuff

This form should have one submit button and the whole form should be
processed in one go. Each instance of Person needs to be on a new row.

I've been messing about with formsets etc. and I can't achieve what I
want to. I was hoping another persons eyes may help.

Thank you

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to