diff --git a/README.rst b/README.rst index bcd79fd3..38ff056f 100644 --- a/README.rst +++ b/README.rst @@ -41,8 +41,7 @@ Important Warning about Time Zones >>> from django_celery_beat.models import PeriodicTask, PeriodicTasks >>> PeriodicTask.objects.all().update(last_run_at=None) - >>> for task in PeriodicTask.objects.all(): - >>> PeriodicTasks.changed(task) + >>> PeriodicTasks.update_changed() diff --git a/docs/includes/introduction.txt b/docs/includes/introduction.txt index 629429c5..4a84bb73 100644 --- a/docs/includes/introduction.txt +++ b/docs/includes/introduction.txt @@ -32,7 +32,7 @@ Important Warning about Time Zones >>> from django_celery_beat.models import PeriodicTask, PeriodicTasks >>> PeriodicTask.objects.update(last_run_at=None) - >>> PeriodicTasks.changed() + >>> PeriodicTasks.update_changed() Note that this will reset the state as if the periodic tasks have never run before.