Skip to content

Commit

Permalink
Fix reversion after update (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
znick authored Apr 12, 2024
1 parent e6fd8cf commit b76c4c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion anytask/tasks/management/commands/send_task_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import time
from reversion import revisions as reversion
from reversion.models import Version
import pytz


Expand Down Expand Up @@ -43,7 +44,7 @@ def handle(self, **options):
task_created = False
task_changed = False

version_list = reversion.get_for_object(task).get_unique()
version_list = Version.objects.get_for_object(task).get_unique()

task_info = [''] * len(DIFF_FIELDS)
for i_version, version in enumerate(version_list):
Expand Down

0 comments on commit b76c4c3

Please sign in to comment.