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