mirror of
https://github.com/simple-login/app.git
synced 2024-09-21 07:25:59 +08:00
fix circular import
This commit is contained in:
parent
1c061ceb59
commit
25de8001e2
|
@ -15,7 +15,6 @@ from app.email_utils import send_email
|
|||
from app.extensions import db
|
||||
from app.log import LOG
|
||||
from app.models import CustomDomain, Alias, DomainDeletedAlias
|
||||
from server import create_light_app
|
||||
|
||||
|
||||
@dashboard_bp.route("/domains/<int:custom_domain_id>/dns", methods=["GET", "POST"])
|
||||
|
@ -202,6 +201,8 @@ def domain_detail(custom_domain_id):
|
|||
|
||||
|
||||
def delete_domain(custom_domain_id: CustomDomain):
|
||||
from server import create_light_app
|
||||
|
||||
with create_light_app().app_context():
|
||||
custom_domain = CustomDomain.get(custom_domain_id)
|
||||
if not custom_domain:
|
||||
|
|
Loading…
Reference in a new issue