diff --git a/boards/models/post/sync.py b/boards/models/post/sync.py --- a/boards/models/post/sync.py +++ b/boards/models/post/sync.py @@ -235,8 +235,8 @@ class SyncManager: opening_post = None tag_tags = tag_content.find(TAG_TAGS) for tag_tag in tag_tags: - tag, created = Tag.objects.get_or_create( - aliases__name=tag_tag.text) + tag, created = Tag.objects.get_or_create_with_alias( + name=tag_tag.text) tags.append(tag) # TODO Check that the replied posts are already present diff --git a/boards/tests/test_sync.py b/boards/tests/test_sync.py --- a/boards/tests/test_sync.py +++ b/boards/tests/test_sync.py @@ -100,6 +100,7 @@ class SyncTest(TestCase): post.get_sync_text(), post.get_thread().get_tags().first().get_name(), post.get_pub_time_str(), + post.last_edit_time, ) in response, 'Wrong response generated for the GET request.')