Desactive upload referentiels competences en prod.
This commit is contained in:
parent
f4d8f4dded
commit
9535ff1e91
@ -14,8 +14,6 @@ from flask_login import current_user
|
|||||||
from werkzeug.utils import redirect
|
from werkzeug.utils import redirect
|
||||||
from werkzeug.utils import secure_filename
|
from werkzeug.utils import secure_filename
|
||||||
|
|
||||||
from config import Config
|
|
||||||
|
|
||||||
from app import db
|
from app import db
|
||||||
from app import log
|
from app import log
|
||||||
|
|
||||||
@ -218,6 +216,9 @@ def refcomp_load(formation_id=None):
|
|||||||
log(f"refcomp_load: ignoring {filename} (already loaded)")
|
log(f"refcomp_load: ignoring {filename} (already loaded)")
|
||||||
|
|
||||||
form = RefCompLoadForm()
|
form = RefCompLoadForm()
|
||||||
|
if current_app and not current_app.config["DEBUG"]:
|
||||||
|
form.upload.render_kw = {"disabled": "disabled"}
|
||||||
|
|
||||||
form.referentiel_standard.choices = [
|
form.referentiel_standard.choices = [
|
||||||
(r["id"], f"{r['specialite']} ({r['created']}-{r['serial']})")
|
(r["id"], f"{r['specialite']} ({r['created']}-{r['serial']})")
|
||||||
for r in refs_distrib_dict
|
for r in refs_distrib_dict
|
||||||
|
Loading…
Reference in New Issue
Block a user