# HG changeset patch # User neko259 # Date 2014-08-07 10:42:01 # Node ID d854d75e02845cf7ea909370d250a8b01c39dd32 # Parent 42fa6c0bf744ce7d81171bf839041759e0be08a4 Use map() in python3 style diff --git a/boards/models/post.py b/boards/models/post.py --- a/boards/models/post.py +++ b/boards/models/post.py @@ -78,8 +78,7 @@ class PostManager(models.Manager): post.id)) thread.replies.add(post) - for tag in tags: - thread.add_tag(tag) + list(map(thread.add_tag, tags)) if new_thread: Thread.objects.process_oldest_threads()