Skip to content

Commit

Permalink
fix/clarify update_changed after TZ change
Browse files Browse the repository at this point in the history
  • Loading branch information
bbilly1 authored and auvipy committed Jul 15, 2024
1 parent 903ffc5 commit ca698f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion docs/includes/introduction.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ca698f9

Please sign in to comment.