mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Added the missing definition for 'john' to ensure the example of adding members to 'beatles' works correctly.
This commit is contained in:
parent
5424151f96
commit
049015370a
@ -525,6 +525,7 @@ the intermediate model:
|
||||
|
||||
>>> ringo = Person.objects.create(name="Ringo Starr")
|
||||
>>> paul = Person.objects.create(name="Paul McCartney")
|
||||
>>> john = Person.objects.create(name="John Wick")
|
||||
>>> beatles = Group.objects.create(name="The Beatles")
|
||||
>>> m1 = Membership(
|
||||
... person=ringo,
|
||||
|
Loading…
Reference in New Issue
Block a user