Add timestamp to post model
This commit is contained in:
parent
61e25fe9d9
commit
de89ddb350
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user