typo in documentation?
|Reported by:||mnieber||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Description (last modified by )
Moreover, memberships for paul and ringo are created differently:
m1 = Membership(person=ringo, group=beatles, date_joined=date(1962, 8, 16), invite_reason= "Needed a new drummer.") m2 = Membership.objects.create(person=paul, group=beatles, date_joined=date(1960, 8, 1), invite_reason= "Wanted to form a band.")
Only the second version (using Membership.objects.create) seems to work.
>>> for group in Group.objects.all(): ... print group.name ... print group.members.all() The Beatles [<Person: Paul McCartney>]
Change History (6)
comment:1 Changed 7 years ago by
|Patch needs improvement:||unset|
comment:3 Changed 7 years ago by
|Triage Stage:||Unreviewed → Ready for checkin|