Have you taken a look at the Many-to-many relationships example?  Looks
like you're trying to manually create the links between tables, whereas
you're supposed to use the Model API's built-in 'set_xxxxx' method.

http://www.djangoproject.com/documentation/models/many_to_many/

Also, are you sure the p and q objects are getting saved?  Your example
isn't complete but I assume if there's a required field and you aren't
setting a value for it then no record gets saved to db.  I'm a newbie,
too, though, so take these comments with a grain of salt.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to