Skip to content

Commit ca698f9

Browse files
bbilly1auvipy
authored andcommitted
fix/clarify update_changed after TZ change
1 parent 903ffc5 commit ca698f9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ Important Warning about Time Zones
4141
4242
>>> from django_celery_beat.models import PeriodicTask, PeriodicTasks
4343
>>> PeriodicTask.objects.all().update(last_run_at=None)
44-
>>> for task in PeriodicTask.objects.all():
45-
>>> PeriodicTasks.changed(task)
44+
>>> PeriodicTasks.update_changed()
4645
4746
4847

docs/includes/introduction.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Important Warning about Time Zones
3232

3333
>>> from django_celery_beat.models import PeriodicTask, PeriodicTasks
3434
>>> PeriodicTask.objects.update(last_run_at=None)
35-
>>> PeriodicTasks.changed()
35+
>>> PeriodicTasks.update_changed()
3636

3737
Note that this will reset the state as if the periodic tasks have never run
3838
before.

0 commit comments

Comments
 (0)