Exemplo n.º 1
0
def delete_user_address(body_id, form_to_display):
    if forms.delete_body_address(body_id, "user"):
        return redirect(url_for("update_user", body_id=body_id,
                                 form_to_display="address"))
    return redirect(url_for('list_users'))
Exemplo n.º 2
0
def delete_dental_office_address(body_id, form_to_display):
    if forms.delete_body_address(body_id, "dental_office"):
        return redirect(url_for("update_dental_office", body_id=body_id,
                                 form_to_display="address"))
    return redirect(url_for('list_dental_offices'))