diff --git a/chapter_22_fixtures_and_wait_decorator.asciidoc b/chapter_22_fixtures_and_wait_decorator.asciidoc index f7caec36..85c34fe7 100644 --- a/chapter_22_fixtures_and_wait_decorator.asciidoc +++ b/chapter_22_fixtures_and_wait_decorator.asciidoc @@ -206,7 +206,7 @@ as a way of temporarily keeping track of some state. This works for non–logged-in users too. Just use `request.session` inside any view, and it works as a dict. There's more information in the -https://docs.djangoproject.com/en/5.0/topics/http/sessions/[Django docs on sessions]. +https://docs.djangoproject.com/en/5.1/topics/http/sessions/[Django docs on sessions]. ********************************************************************** @@ -514,7 +514,7 @@ that have [keep-together]#arguments#: `wait_to_be_logged_in` takes `self` and `email` as positional arguments. But when it's decorated, it's replaced with `modified_fn`, -which current takes no arguments. +which currently takes no arguments. How do we magically make it so our `modified_fn` can handle the same arguments as whatever `fn` the decorator gets given has? @@ -522,6 +522,8 @@ The answer is a bit of Python magic, `*args` and `**kwargs`, more formally known as https://docs.python.org/3/tutorial/controlflow.html#keyword-arguments["variadic arguments"], apparently (I only just learned that): +// CSANAD: the way I read it, I think they only call `*args` "variadic arguments": +// https://docs.python.org/3/tutorial/controlflow.html#arbitrary-argument-lists