瀏覽代碼

Replace autodiscover() with autodiscover_tasks() in whatsnew-4.0.rst (#3370)

[skip ci]
Berker Peksag 8 年之前
父節點
當前提交
dde02602ed
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/whatsnew-4.0.rst

+ 2 - 2
docs/whatsnew-4.0.rst

@@ -444,12 +444,12 @@ upgrade to 4.0:
 Django: Auto-discover now supports Django app configurations
 ------------------------------------------------------------
 
-The :meth:`@autodiscover` function can now be called without arguments,
+The ``autodiscover_tasks()`` function can now be called without arguments,
 and the Django handler will automatically find your installed apps:
 
 .. code-block:: python
 
-    app.autodiscover()
+    app.autodiscover_tasks()
 
 The Django integration :ref:`example in the documentation
 <django-first-steps>` has been updated to use the argument-less call.