mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Added documentation for the 'db' argument of the post-syncdb signal.
This commit is contained in:
committed by
Florian Apolloner
parent
ffa50ca352
commit
6248833d9e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user