Fixed broken links, round 4. refs #19516

This commit is contained in:
Tim Graham 2012-12-29 10:35:12 -05:00
parent 13a2b11425
commit 067505ad19
30 changed files with 162 additions and 156 deletions

View file

@ -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

View file

@ -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`::

View file

@ -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
----------------

View file

@ -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: