示例#1
0
def contacts():
    contacts_obj = Contact.query(
        Contact.is_public == True).order(-Contact.order_id)
    managers = Manager.query(Manager.is_public == True)
    return flask.render_template('pages/contact.html',
                                 title=u'Контакты',
                                 contacts=contacts_obj,
                                 managers=managers)
示例#2
0
文件: views.py 项目: gmist/3dhero.ru
def contacts():
    contacts_obj = Contact.query(Contact.is_public == True).order(-Contact.order_id)
    managers = Manager.query(Manager.is_public == True)
    return flask.render_template(
        'pages/contact.html',
        title=u'Контакты',
        contacts=contacts_obj,
        managers=managers
    )
示例#3
0
文件: views.py 项目: gmist/3dhero.ru
def index():
    contacts = Contact.query().order(-Contact.order_id)
    return render_template(
        'admin/contact/index.html',
        contacts=contacts
    )
示例#4
0
def index():
    contacts = Contact.query().order(-Contact.order_id)
    return render_template('admin/contact/index.html', contacts=contacts)