Skip to content

Commit

Permalink
Update whatsnew-4.0 (#3909)
Browse files Browse the repository at this point in the history
Issue: #3874
  • Loading branch information
primoz-k authored and Omer Katz committed Mar 15, 2017
1 parent d34ee24 commit 9342ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/whatsnew-4.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ these manually:
class CustomTask(Task):
def run(self):
print('running')
app.register_task(CustomTask())
CustomTask = app.register_task(CustomTask())
The best practice is to use custom task classes only for overriding
general behavior, and then using the task decorator to realize the task:
Expand Down

0 comments on commit 9342ed5

Please sign in to comment.