I have a simple model that allows a volunteer to have many jobs and a
job to have many volunteers:
class Volunteer(models.Model):
jobs = models.ManyToManyField( 'Job', blank=True )
The following ModelForm displays a Multi-select widget so I can choose
all the jobs for a volunteer:
class VolunteerForm( ModelForm ):
class Meta:
model = Volunteer
This is some fairly basic Django. However, I'd also like to be able
to edit in the other direction -- from a Jobs form, I'd like to be
able to see a Multi-select widget containing all the volunteers who
have this job and select/unselect them. I can't quite wrap my brain
around this and I've found no clues by searching the web. Does Django
provide some facility to accomplish this or do I have to build
something from the ground up?
Thanks.
Wilb
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.