def __init__(self, forum, title, author, created, post_icon): t = Topic() t.forum_id= forum t.title = title t.author_id = author t.created = created t.post_icon_id = post_icon t.save()