15 lines
431 B
Python
15 lines
431 B
Python
from oshipka.persistance import db, ModelController, index_service, LiberalBoolean, Ownable
|
|
|
|
|
|
class BlogPost(db.Model, ModelController, Ownable):
|
|
__searchable__ = ['body', ]
|
|
|
|
filename = db.Column(db.UnicodeText,)
|
|
title = db.Column(db.UnicodeText,)
|
|
body = db.Column(db.UnicodeText,)
|
|
created_dt = db.Column(db.UnicodeText,)
|
|
updated_dt = db.Column(db.UnicodeText,)
|
|
|
|
|
|
index_service.searchables.append(BlogPost)
|