Added documentation for the 'db' argument of the post-syncdb signal.
This commit is contained in:
parent
ffa50ca352
commit
6248833d9e
|
@ -12,6 +12,6 @@ post_save = Signal(providing_args=["instance", "raw", "created", "using", "updat
|
||||||
pre_delete = Signal(providing_args=["instance", "using"], use_caching=True)
|
pre_delete = Signal(providing_args=["instance", "using"], use_caching=True)
|
||||||
post_delete = Signal(providing_args=["instance", "using"], use_caching=True)
|
post_delete = Signal(providing_args=["instance", "using"], use_caching=True)
|
||||||
|
|
||||||
post_syncdb = Signal(providing_args=["class", "app", "created_models", "verbosity", "interactive"], use_caching=True)
|
post_syncdb = Signal(providing_args=["class", "app", "created_models", "verbosity", "interactive", "db"], use_caching=True)
|
||||||
|
|
||||||
m2m_changed = Signal(providing_args=["action", "instance", "reverse", "model", "pk_set", "using"], use_caching=True)
|
m2m_changed = Signal(providing_args=["action", "instance", "reverse", "model", "pk_set", "using"], use_caching=True)
|
||||||
|
|
|
@ -406,6 +406,10 @@ Arguments sent with this signal:
|
||||||
For example, the :mod:`django.contrib.auth` app only prompts to create a
|
For example, the :mod:`django.contrib.auth` app only prompts to create a
|
||||||
superuser when ``interactive`` is ``True``.
|
superuser when ``interactive`` is ``True``.
|
||||||
|
|
||||||
|
``db``
|
||||||
|
The database alias used for synchronization. Defaults to the ``default``
|
||||||
|
database.
|
||||||
|
|
||||||
For example, ``yourapp/management/__init__.py`` could be written like::
|
For example, ``yourapp/management/__init__.py`` could be written like::
|
||||||
|
|
||||||
from django.db.models.signals import post_syncdb
|
from django.db.models.signals import post_syncdb
|
||||||
|
|
Loading…
Reference in New Issue