diff options
| author | Tim Graham <timograham@gmail.com> | 2012-12-29 10:35:12 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2012-12-29 15:57:57 -0500 |
| commit | 9e5ada79bf2d25fa862babe74517a6c7b5b89968 (patch) | |
| tree | 78937f2f77f75a4279cce7440c50186d74297658 /docs/ref | |
| parent | d529d413f742b16e787c5ddb4e843fa66d1b0809 (diff) | |
[1.5.x] Fixed broken links, round 4. refs #19516
Backport of 067505ad19 from master
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/auth.txt | 8 | ||||
| -rw-r--r-- | docs/ref/contrib/gis/testing.txt | 2 | ||||
| -rw-r--r-- | docs/ref/contrib/messages.txt | 2 | ||||
| -rw-r--r-- | docs/ref/signals.txt | 17 |
4 files changed, 15 insertions, 14 deletions
diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt index 41f218b0a4..74a69c1f7d 100644 --- a/docs/ref/contrib/auth.txt +++ b/docs/ref/contrib/auth.txt @@ -349,7 +349,7 @@ Login and logout signals The auth framework uses two :doc:`signals </topics/signals>` that can be used for notification when a user logs in or out. -.. function:: django.contrib.auth.signals.user_logged_in +.. function:: user_logged_in Sent when a user logs in successfully. @@ -364,7 +364,7 @@ for notification when a user logs in or out. ``user`` The user instance that just logged in. -.. function:: django.contrib.auth.signals.user_logged_out +.. function:: user_logged_out Sent when the logout method is called. @@ -379,9 +379,9 @@ for notification when a user logs in or out. The user instance that just logged out or ``None`` if the user was not authenticated. -.. function:: django.contrib.auth.signals.user_login_failed +.. function:: user_login_failed -.. versionadded:: 1.5 + .. versionadded:: 1.5 Sent when the user failed to login successfully diff --git a/docs/ref/contrib/gis/testing.txt b/docs/ref/contrib/gis/testing.txt index 86979f0308..2a6dcef46f 100644 --- a/docs/ref/contrib/gis/testing.txt +++ b/docs/ref/contrib/gis/testing.txt @@ -140,6 +140,8 @@ with the rest of :ref:`Django's unit tests <running-unit-tests>`. Run only GeoDjango tests ------------------------ +.. class:: django.contrib.gis.tests.GeoDjangoTestSuiteRunner + To run *only* the tests for GeoDjango, the :setting:`TEST_RUNNER` setting must be changed to use the :class:`~django.contrib.gis.tests.GeoDjangoTestSuiteRunner`:: diff --git a/docs/ref/contrib/messages.txt b/docs/ref/contrib/messages.txt index 4fa733edb5..661d7f2103 100644 --- a/docs/ref/contrib/messages.txt +++ b/docs/ref/contrib/messages.txt @@ -149,6 +149,8 @@ tags for the levels you wish to override:: Using messages in views and templates ===================================== +.. function:: add_message(request, level, message, extra_tags='', fail_silently=False) + Adding a message ---------------- diff --git a/docs/ref/signals.txt b/docs/ref/signals.txt index 0671d80b7c..c31c90f4e8 100644 --- a/docs/ref/signals.txt +++ b/docs/ref/signals.txt @@ -27,9 +27,8 @@ module system. .. warning:: Many of these signals are sent by various model methods like - :meth:`~django.db.models.Model.__init__` or - :meth:`~django.db.models.Model.save` that you can overwrite in your own - code. + ``__init__()`` or :meth:`~django.db.models.Model.save` that you can + override in your own code. If you override these methods on your model, you must call the parent class' methods for this signals to be sent. @@ -47,7 +46,7 @@ pre_init .. ^^^^^^^ this :module: hack keeps Sphinx from prepending the module. Whenever you instantiate a Django model, this signal is sent at the beginning -of the model's :meth:`~django.db.models.Model.__init__` method. +of the model's ``__init__()`` method. Arguments sent with this signal: @@ -55,12 +54,10 @@ Arguments sent with this signal: The model class that just had an instance created. ``args`` - A list of positional arguments passed to - :meth:`~django.db.models.Model.__init__`: + A list of positional arguments passed to ``__init__()``: ``kwargs`` - A dictionary of keyword arguments passed to - :meth:`~django.db.models.Model.__init__`:. + A dictionary of keyword arguments passed to ``__init__()``: For example, the :doc:`tutorial </intro/tutorial01>` has this line:: @@ -74,7 +71,7 @@ Argument Value ``sender`` ``Poll`` (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()}`` ========== =============================================================== @@ -85,7 +82,7 @@ post_init .. data:: django.db.models.signals.post_init :module: -Like pre_init, but this one is sent when the :meth:`~django.db.models.Model.__init__`: method finishes. +Like pre_init, but this one is sent when the ``__init__()`` method finishes. Arguments sent with this signal: |
