from flask.ext.admin.contrib.sqla.view import ModelView, func


class PaidOrderView(ModelVew):

    def get_query(self):
        return self.session.query(self.model).filter(self.model.paid == True)

def get_count_query(self):
    pass
Flask-Admin default filters