docs(Learning-Typeclasses): 📝 fix .at_object_creation example code

This commit is contained in:
iLPdev 2023-10-20 07:59:44 -07:00 committed by GitHub
parent fe5f2abb63
commit 0f30b4bb5c
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