Reformat with Black
This commit is contained in:
parent
26d0437009
commit
9702037573
|
@ -161,7 +161,9 @@ def domain_detail(custom_domain_id):
|
||||||
url_for("dashboard.domain_detail", custom_domain_id=custom_domain.id)
|
url_for("dashboard.domain_detail", custom_domain_id=custom_domain.id)
|
||||||
)
|
)
|
||||||
elif request.form.get("form-name") == "switch-random-prefix-generation":
|
elif request.form.get("form-name") == "switch-random-prefix-generation":
|
||||||
custom_domain.random_prefix_generation = not custom_domain.random_prefix_generation
|
custom_domain.random_prefix_generation = (
|
||||||
|
not custom_domain.random_prefix_generation
|
||||||
|
)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
if custom_domain.random_prefix_generation:
|
if custom_domain.random_prefix_generation:
|
||||||
|
|
|
@ -1450,7 +1450,9 @@ class CustomDomain(db.Model, ModelMixin):
|
||||||
catch_all = db.Column(db.Boolean, nullable=False, default=False, server_default="0")
|
catch_all = db.Column(db.Boolean, nullable=False, default=False, server_default="0")
|
||||||
|
|
||||||
# option to generate random prefix version automatically
|
# option to generate random prefix version automatically
|
||||||
random_prefix_generation = db.Column(db.Boolean, nullable=False, default=False, server_default="0")
|
random_prefix_generation = db.Column(
|
||||||
|
db.Boolean, nullable=False, default=False, server_default="0"
|
||||||
|
)
|
||||||
|
|
||||||
user = db.relationship(User, foreign_keys=[user_id])
|
user = db.relationship(User, foreign_keys=[user_id])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue