Author: PaulM
Date: 2011-09-21 22:39:07 -0700 (Wed, 21 Sep 2011)
New Revision: 16879
Modified:
django/branches/releases/1.3.X/docs/ref/signals.txt
Log:
[1.3.X] Fixed #15633 -- Improved docs for post_syncdb signal. Thanks Justin
Lilly for the patch.
Modified: django/branches/releases/1.3.X/docs/ref/signals.txt
===================================================================
--- django/branches/releases/1.3.X/docs/ref/signals.txt 2011-09-22 05:36:57 UTC
(rev 16878)
+++ django/branches/releases/1.3.X/docs/ref/signals.txt 2011-09-22 05:39:07 UTC
(rev 16879)
@@ -352,12 +352,16 @@
.. data:: django.db.models.signals.post_syncdb
:module:
-Sent by :djadmin:`syncdb` after it installs an application.
+Sent by :djadmin:`syncdb` command after it installs an application, and
+:djadmin:`flush` command.
Any handlers that listen to this signal need to be written in a particular
place: a ``management`` module in one of your :setting:`INSTALLED_APPS`. If
handlers are registered anywhere else they may not be loaded by
-:djadmin:`syncdb`.
+:djadmin:`syncdb`. It is important that handlers of this signal perform
+idempodent changes (e.g. no database alterations) as this may cause the
+:djadmin:`flush` management command to fail if it also ran during the
+:djadmin:`syncdb` command.
Arguments sent with this signal:
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.