From 08779f4689577c672493d1d53d06b4848eed864a Mon Sep 17 00:00:00 2001 From: collerek Date: Sun, 22 Nov 2020 08:47:21 +0100 Subject: [PATCH] fix two step example in docs index and readme --- README.md | 2 +- docs/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)