Re: ManyToMany relationship can't be saved

2013-11-25 Thread Shai Berger
On Friday 22 November 2013 07:31:38 Adam Smith wrote: > As I was learning the Django Docs ( > https://docs.djangoproject.com/en/1.6/topics/db/models/#extra-fields-on-man > y-to-many-relationships), I found the following code not working. Is it a > bug? At least the result is unexpected. > > ringo

Re: ManyToMany relationship can't be saved

2013-11-21 Thread Curtis Maloney
At first glance, I'd guess it's because the PK for ringo and beatles haven't been updated in the instances you have. On 22 November 2013 16:31, Adam Smith wrote: > As I was learning the Django Docs ( > https://docs.djangoproject.com/en/1.6/topics/db/models/#extra-fields-on-many-to-many-relation

ManyToMany relationship can't be saved

2013-11-21 Thread Adam Smith
As I was learning the Django Docs ( https://docs.djangoproject.com/en/1.6/topics/db/models/#extra-fields-on-many-to-many-relationships), I found the following code not working. Is it a bug? At least the result is unexpected. ringo = Person(name="Ringo") beatles = Group(name="Beatles") m1 = Memb