Browse Source

Fixed outdated django example

Ask Solem 9 years ago
parent
commit
1b67e644e8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/whatsnew-3.1.rst

+ 1 - 1
docs/whatsnew-3.1.rst

@@ -319,7 +319,7 @@ but if you would like to experiment with it you should know that:
     .. code-block:: python
 
         from django.conf import settings
-        app.autodiscover_tasks(settings.INSTALLED_APPS)
+        app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
 
 - You no longer use ``manage.py``