diff --git a/README.md b/README.md index 043fe1c..25fd50f 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ await Track.objects.create(album=malibu, title="Heart don't stand a chance", pos await Track.objects.create(album=malibu, title="The Waters", position=3) # alternative creation of object divided into 2 steps -fantasies = Album.objects.create(name="Fantasies") +fantasies = Album(name="Fantasies") await fantasies.save() await Track.objects.create(album=fantasies, title="Help I'm Alive", position=1) await Track.objects.create(album=fantasies, title="Sick Muse", position=2) diff --git a/docs/index.md b/docs/index.md index 2691e24..f69de18 100644 --- a/docs/index.md +++ b/docs/index.md @@ -100,7 +100,7 @@ await Track.objects.create(album=malibu, title="Heart don't stand a chance", pos await Track.objects.create(album=malibu, title="The Waters", position=3) # alternative creation of object divided into 2 steps -fantasies = Album.objects.create(name="Fantasies") +fantasies = Album(name="Fantasies") await fantasies.save() await Track.objects.create(album=fantasies, title="Help I'm Alive", position=1) await Track.objects.create(album=fantasies, title="Sick Muse", position=2)