Merge pull request #3294 from iLPdev/patch-2

docs(Learning-Typeclasses): 📝 fix loop example
This commit is contained in:
Griatch 2023-10-21 16:48:39 +02:00 committed by GitHub
commit 6b4be46602
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -547,7 +547,7 @@ A python _for-loop_ allows us to loop over something. Above, we made a _list_ of
For our list, we want to loop over all Characters, and want to call `.at_object_creation` on each. This is how this is done (still in python multi-line mode):
> from typeclasses.characters import Character
> for char in Character.objects.all()
> for char in Character.objects.all():
> char.at_object_creation()
```{sidebar} Database queries