From e6fd8cf497542509427831d4b995e4e81d981a3d Mon Sep 17 00:00:00 2001 From: Nikolay Zhuravlev Date: Sat, 13 Apr 2024 01:40:12 +0200 Subject: [PATCH] Fix reversion after update --- anytask/tasks/management/commands/send_task_notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anytask/tasks/management/commands/send_task_notifications.py b/anytask/tasks/management/commands/send_task_notifications.py index 54be0560..b1555cce 100644 --- a/anytask/tasks/management/commands/send_task_notifications.py +++ b/anytask/tasks/management/commands/send_task_notifications.py @@ -43,7 +43,7 @@ def handle(self, **options): task_created = False task_changed = False - version_list = reversion.get_unique_for_object(task) + version_list = reversion.get_for_object(task).get_unique() task_info = [''] * len(DIFF_FIELDS) for i_version, version in enumerate(version_list):