Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added documentation for the 'db' argument of the post-syncdb signal.

  • Loading branch information...
commit 6248833d9e35926d6ccd4b4d602f7ea89fea0c74 1 parent ffa50ca
Marco Paolini mpaolini authored apollo13 committed
Showing with 5 additions and 1 deletion.
  1. +1 −1  django/db/models/signals.py
  2. +4 −0 docs/ref/signals.txt
2  django/db/models/signals.py
View
@@ -12,6 +12,6 @@
pre_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)
4 docs/ref/signals.txt
View
@@ -406,6 +406,10 @@ Arguments sent with this signal:
For example, the :mod:`django.contrib.auth` app only prompts to create a
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::
from django.db.models.signals import post_syncdb
Please sign in to comment.
Something went wrong with that request. Please try again.