Add timestamp to post model

This commit is contained in:
Adrian Malacoda 2016-11-27 00:42:27 -06:00
parent 61e25fe9d9
commit de89ddb350

View File

@ -5,10 +5,11 @@ class Forum (object):
self.categories = [] self.categories = []
class Post (object): class Post (object):
def __init__ (self, title=None, body=None, author=None): def __init__ (self, title=None, body=None, author=None, timestamp=None):
self.title = title self.title = title
self.body = body self.body = body
self.author = author self.author = author
self.timestamp = timestamp
class Thread (object): class Thread (object):
def __init__ (self, title=None): def __init__ (self, title=None):