2020-07-08 14:36:13 +02:00
|
|
|
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,)
|
2020-07-13 11:54:16 +02:00
|
|
|
title = db.Column(db.UnicodeText,)
|
2020-07-08 14:36:13 +02:00
|
|
|
body = db.Column(db.UnicodeText,)
|
|
|
|
|
|
|
|
|
|
|
|
index_service.searchables.append(BlogPost)
|