From 22db4ef8e771368af3ed6cf3f97edf778face827 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Wed, 8 Apr 2015 09:00:33 +0200 Subject: [PATCH] Fixing migration --- taiga/timeline/migrations/0002_auto_20150327_1056.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/taiga/timeline/migrations/0002_auto_20150327_1056.py b/taiga/timeline/migrations/0002_auto_20150327_1056.py index e5290c62..a4d3d1d8 100644 --- a/taiga/timeline/migrations/0002_auto_20150327_1056.py +++ b/taiga/timeline/migrations/0002_auto_20150327_1056.py @@ -12,7 +12,7 @@ from taiga.projects.history.choices import HistoryType from taiga.projects.history.models import HistoryEntry from taiga.timeline.models import Timeline from taiga.timeline.service import (_add_to_object_timeline, _get_impl_key_from_model, - _timeline_impl_map) + _timeline_impl_map, extract_user_info) from taiga.timeline.signals import on_new_history_entry, _push_to_timelines from taiga.users.models import User @@ -55,10 +55,7 @@ def generate_timeline(apps, schema_editor): print("Project:", created) extra_data = { "values_diff": {}, - "user": { - "pk": project.owner.id, - "user_name": project.owner.get_full_name(), - }, + "user": extract_user_info(project.owner), } _push_to_timelines(project, project.owner, project, "create", extra_data=extra_data)