Hello, With this model and form, what is the correct syntax to save a new Room object?
======================================================== from django.contrib.auth.models import User class Room(models.Model): name = models.CharField() users = models.ManyToManyField(User) class RoomForm(newforms.Form): name = newforms.CharField() users = newforms.MultipleChoiceField( \ choices=[u.id, u.name for u in User.objects.all()]) ======================================================== In my view, I am stuck when trying to save the new Room object. I have no clue as to how to save the ManyToMany field. I could not retrieve any similar bit of code in any source code (neither on this list nor in Django projects source code). ny hint or example would be great. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---