Changes between Initial Version and Version 1 of Ticket #11106
- Timestamp:
- May 13, 2009, 3:18:24 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11106 – Description
initial v1 1 1 I think in http://docs.djangoproject.com/en/dev/topics/db/models/#topics-db-models 2 2 {{{ 3 3 >>> Groups.objects.filter(members__name__startswith='Paul') 4 4 }}} 5 5 should be 6 6 {{{ 7 7 >>> Group.objects.filter(members__name__startswith='Paul') 8 8 }}} 9 9 Moreover, memberships for paul and ringo are created differently: 10 10 {{{ 11 11 m1 = Membership(person=ringo, group=beatles, date_joined=date(1962, 8, 16), invite_reason= "Needed a new drummer.") 12 12 m2 = Membership.objects.create(person=paul, group=beatles, date_joined=date(1960, 8, 1), invite_reason= "Wanted to form a band.") 13 13 }}} 14 14 Only the second version (using Membership.objects.create) seems to work. 15 15 {{{ 16 16 >>> for group in Group.objects.all(): 17 17 ... print group.name … … 20 20 The Beatles 21 21 [<Person: Paul McCartney>] 22 23 24 25 22 }}}