Fixed typos in signals and custom management commands docs.
This commit is contained in:
parent
036362e0cf
commit
a7038adbd0
|
@ -82,7 +82,7 @@ The new custom command can be called using ``python manage.py closepoll
|
||||||
The ``handle()`` method takes one or more ``poll_ids`` and sets ``poll.opened``
|
The ``handle()`` method takes one or more ``poll_ids`` and sets ``poll.opened``
|
||||||
to ``False`` for each one. If the user referenced any nonexistent polls, a
|
to ``False`` for each one. If the user referenced any nonexistent polls, a
|
||||||
:exc:`CommandError` is raised. The ``poll.opened`` attribute does not exist in
|
:exc:`CommandError` is raised. The ``poll.opened`` attribute does not exist in
|
||||||
the :doc:`tutorial</intro/tutorial01>` and was added to
|
the :doc:`tutorial</intro/tutorial02>` and was added to
|
||||||
``polls.models.Question`` for this example.
|
``polls.models.Question`` for this example.
|
||||||
|
|
||||||
.. _custom-commands-options:
|
.. _custom-commands-options:
|
||||||
|
|
|
@ -39,8 +39,8 @@ model system.
|
||||||
|
|
||||||
Model signals ``sender`` model can be lazily referenced when connecting a
|
Model signals ``sender`` model can be lazily referenced when connecting a
|
||||||
receiver by specifying its full application label. For example, an
|
receiver by specifying its full application label. For example, an
|
||||||
``Answer`` model defined in the ``polls`` application could be referenced
|
``Question`` model defined in the ``polls`` application could be referenced
|
||||||
as ``'polls.Answer'``. This sort of reference can be quite handy when
|
as ``'polls.Question'``. This sort of reference can be quite handy when
|
||||||
dealing with circular import dependencies and swappable models.
|
dealing with circular import dependencies and swappable models.
|
||||||
|
|
||||||
``pre_init``
|
``pre_init``
|
||||||
|
|
Loading…
Reference in New Issue