app-MAIL-temp/app/dashboard/views/deleted_alias.py

14 lines
430 B
Python
Raw Normal View History

2020-02-15 15:47:27 +01:00
from flask import render_template
from flask_login import login_required, current_user
from app.dashboard.base import dashboard_bp
from app.models import DeletedAlias
@dashboard_bp.route("/deleted_alias", methods=["GET", "POST"])
@login_required
def deleted_alias_route():
2020-02-23 11:36:45 +01:00
deleted_aliases = DeletedAlias.query.filter_by(user_id=current_user.id).all()
2020-02-15 15:47:27 +01:00
return render_template("dashboard/deleted_alias.html", **locals())