@account.before_app_request
def before_request():
    if current_user.is_authenticated() \
            and not current_user.confirmed \
            and request.endpoint[:8] != 'account.' \
            and request.endpoint != 'static':
        return redirect(url_for('account.unconfirmed'))
Tests that choosing "Save and continue editing" redirects
dataset/ETHPy150Open hack4impact/flask-base/app/account/views.py/before_request--crossover with--dataset/ETHPy150Open pydanny/django-admin2/example/blog/tests/test_views.py/PostCreateViewTest.test_save_and_continue_editing_redirects_to_update