1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Added the missing definition for 'john' to ensure the example of adding members to 'beatles' works correctly.

This commit is contained in:
Mohammad Yameen 2024-08-03 23:09:30 +05:30
parent 5424151f96
commit 049015370a

View File

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