summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2019-06-18 14:19:19 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-06-18 14:51:17 +0200
commit036362e0cfe74e4ab8a65b99eb2aa9c35371fc04 (patch)
tree71009b9c4c01ad4f3ed5d80d703434d81f4471f0 /docs
parentb08a18f17ba53eb0bc7fd7993924f3d7f8ed5c52 (diff)
Fixed typos and example in signals.pre_init docs.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/signals.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/ref/signals.txt b/docs/ref/signals.txt
index 67baca911e..917b46dc46 100644
--- a/docs/ref/signals.txt
+++ b/docs/ref/signals.txt
@@ -60,26 +60,27 @@ Arguments sent with this signal:
The model class that just had an instance created.
``args``
- A list of positional arguments passed to ``__init__()``:
+ A list of positional arguments passed to ``__init__()``.
``kwargs``
- A dictionary of keyword arguments passed to ``__init__()``:
+ A dictionary of keyword arguments passed to ``__init__()``.
-For example, the :doc:`tutorial </intro/tutorial01>` has this line::
+For example, the :doc:`tutorial </intro/tutorial02>` has this line::
- p = Poll(question="What's up?", pub_date=datetime.now())
+ q = Question(question_text="What's new?", pub_date=timezone.now())
The arguments sent to a :data:`pre_init` handler would be:
========== ===============================================================
Argument Value
========== ===============================================================
-``sender`` ``Poll`` (the class itself)
+``sender`` ``Question`` (the class itself)
``args`` ``[]`` (an empty list because there were no positional
- arguments passed to ``__init__()``.)
+ arguments passed to ``__init__()``)
-``kwargs`` ``{'question': "What's up?", 'pub_date': datetime.now()}``
+``kwargs`` ``{'question_text': "What's new?",``
+ ``'pub_date': datetime.datetime(2012, 2, 26, 13, 0, 0, 775217, tzinfo=<UTC>)}``
========== ===============================================================
``post_init``