Skip to content
Browse files

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

  • Loading branch information...
1 parent ffa50ca commit 6248833d9e35926d6ccd4b4d602f7ea89fea0c74 @mpaolini mpaolini committed with apollo13
Showing with 5 additions and 1 deletion.
  1. +1 −1  django/db/models/
  2. +4 −0 docs/ref/signals.txt
2  django/db/models/
@@ -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
@@ -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``.
+ The database alias used for synchronization. Defaults to the ``default``
+ database.
For example, ``yourapp/management/`` could be written like::
from django.db.models.signals import post_syncdb

0 comments on commit 6248833

Please sign in to comment.
Something went wrong with that request. Please try again.