Ejemplo n.º 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)
Ejemplo n.º 2
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
    )
Ejemplo n.º 3
0
def index():
    contacts = Contact.query().order(-Contact.order_id)
    return render_template(
        'admin/contact/index.html',
        contacts=contacts
    )
Ejemplo n.º 4
0
def index():
    contacts = Contact.query().order(-Contact.order_id)
    return render_template('admin/contact/index.html', contacts=contacts)