Hey there, I've been searching this group for a working example of a complex form using a ManyToMany relationship with an intermediary model.
I've read this documentation to know a bit more about the ManyToMany relationship: http://docs.djangoproject.com/en/dev/topics/db/models/#intermediary-manytomany I found these posts with a similar problem but wasn't able to make their example work: http://groups.google.com/group/django-users/browse_thread/thread/755f6338ebb623ad/22e3983079012888?lnk=gst&q=manytomany#22e3983079012888 http://groups.google.com/group/django-users/browse_thread/thread/30377f508e805d/fcb922a7deddc46e?lnk=gst&q=manytomany+form#fcb922a7deddc46e I also read about Formsets: http://docs.djangoproject.com/en/dev/topics/forms/formsets/ here are my models: http://pastebin.com/f3524b188 Basically, I have Clients and Groups. Clients can be part of multiple groups. Clients that are part of a group can use its group's free rental rate at anytime but only once. That is where the intermediary model comes in with that extra data. What I'm struggling with is saving that data using a form. here's the view: http://pastebin.com/f26256934 The highlighted line is where it dies. Please note that I'm not using the Admin interface. I don't want someone to write the code for me here. I just want to know what's wrong or what I'm forgetting in my code. any hints people? Bernard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---