From bca3acc83149010cbf04a35a6ebb65ca972dc20d Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 12 Jul 2024 15:53:38 +0200 Subject: [PATCH] fix/clarify update_changed after TZ change --- README.rst | 3 +-- docs/includes/introduction.txt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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.