Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.3.X] Fixed #15633 -- Improved docs for post_syncdb signal. Thanks …

…Justin Lilly for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16879 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 35e807c4a5fb5bb4d72ede54c92d7359a19c3370 1 parent 2a4aa8b
Paul McMillan authored September 22, 2011

Showing 1 changed file with 6 additions and 2 deletions. Show diff stats Hide diff stats

  1. 8  docs/ref/signals.txt
8  docs/ref/signals.txt
@@ -352,12 +352,16 @@ post_syncdb
352 352
 .. data:: django.db.models.signals.post_syncdb
353 353
    :module:
354 354
 
355  
-Sent by :djadmin:`syncdb` after it installs an application.
  355
+Sent by :djadmin:`syncdb` command after it installs an application, and
  356
+:djadmin:`flush` command.
356 357
 
357 358
 Any handlers that listen to this signal need to be written in a particular
358 359
 place: a ``management`` module in one of your :setting:`INSTALLED_APPS`. If
359 360
 handlers are registered anywhere else they may not be loaded by
360  
-:djadmin:`syncdb`.
  361
+:djadmin:`syncdb`. It is important that handlers of this signal perform
  362
+idempodent changes (e.g. no database alterations) as this may cause the
  363
+:djadmin:`flush` management command to fail if it also ran during the
  364
+:djadmin:`syncdb` command.
361 365
 
362 366
 Arguments sent with this signal:
363 367
 

0 notes on commit 35e807c

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