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