From 278365f9b4a36e011f30c840674dbad78a7b4e56 Mon Sep 17 00:00:00 2001 From: Nicolas Oudard Date: Thu, 12 Dec 2024 15:33:47 +0100 Subject: [PATCH] =?UTF-8?q?clean=20up=20pour=20=C3=A9duire=20le=20nombre?= =?UTF-8?q?=20d'erreur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/settings.py | 4 ++++ templates/common/button/next_and_save.html | 2 +- templates/conventions/cadastre.html | 16 ++++++++-------- .../conventions/common/form_commentaires.html | 4 ++-- templates/conventions/denonciation.html | 2 +- templates/conventions/edd.html | 6 +++--- templates/conventions/journal.html | 4 ++-- templates/conventions/resiliation.html | 2 +- templates/conventions/resiliation_acte.html | 2 +- templates/settings/delegataires/form.html | 2 +- templates/settings/delegataires/preview.html | 2 +- 11 files changed, 25 insertions(+), 21 deletions(-) diff --git a/core/settings.py b/core/settings.py index 8ee1c6834..73e5a5b52 100644 --- a/core/settings.py +++ b/core/settings.py @@ -82,6 +82,10 @@ def get_env_variable(name, cast=str, default=""): "handlers": ["console"], "level": LOGLEVEL, }, + "django.db.backends": { + "handlers": ["console"], + "level": "DEBUG", + }, }, "formatters": { "default": { diff --git a/templates/common/button/next_and_save.html b/templates/common/button/next_and_save.html index e5de70c6d..4c8dde5cd 100644 --- a/templates/common/button/next_and_save.html +++ b/templates/common/button/next_and_save.html @@ -1,5 +1,5 @@ {% if not request|is_readonly %} - {% endif %} \ No newline at end of file diff --git a/templates/conventions/cadastre.html b/templates/conventions/cadastre.html index 999587856..a1e4b452b 100644 --- a/templates/conventions/cadastre.html +++ b/templates/conventions/cadastre.html @@ -137,17 +137,17 @@

Agrément de gestionnaire ou agrément d'intermédiation

Pour toutes les sections ci-dessous, vous avez la possibilité de renseigner les champs en saisissant les informations ou en téléversant des images.

- {% include "common/form/input_upload.html" with form_input=form.vendeur form_input_files=form.vendeur_files object_name='programme' object_uuid=convention.programme.uuid textarea=True image_only=True file_list=convention.programme.vendeur|get_files_from_textfiles object_field="programme__vendeur__"|add:form.uuid.value %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.vendeur form_input_files=form.vendeur_files object_name='programme' object_uuid=convention.programme.uuid textarea=True image_only=True file_list=convention.programme.vendeur|get_files_from_textfiles object_field="programme__vendeur__"|add:form.uuid.value %} - {% include "common/form/input_upload.html" with form_input=form.acquereur form_input_files=form.acquereur_files object_name='programme' object_uuid=convention.programme.uuid textarea=True image_only=True file_list=convention.programme.acquereur|get_files_from_textfiles object_field="programme__acquereur__"|add:form.uuid.value %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.acquereur form_input_files=form.acquereur_files object_name='programme' object_uuid=convention.programme.uuid textarea=True image_only=True file_list=convention.programme.acquereur|get_files_from_textfiles object_field="programme__acquereur__"|add:form.uuid.value %} - {% include "common/form/input_upload.html" with form_input=form.reference_notaire form_input_files=form.reference_notaire_files object_name='programme' object_uuid=convention.programme.uuid textarea=True image_only=True file_list=convention.programme.reference_notaire|get_files_from_textfiles object_field="programme__reference_notaire__"|add:form.uuid.value %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.reference_notaire form_input_files=form.reference_notaire_files object_name='programme' object_uuid=convention.programme.uuid textarea=True image_only=True file_list=convention.programme.reference_notaire|get_files_from_textfiles object_field="programme__reference_notaire__"|add:form.uuid.value %} - {% include "common/form/input_upload.html" with form_input=form.reference_publication_acte form_input_files=form.reference_publication_acte_files object_name='programme' object_uuid=convention.programme.uuid textarea=True image_only=True file_list=convention.programme.reference_publication_acte|get_files_from_textfiles object_field="programme__reference_publication_acte__"|add:form.uuid.value %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.reference_publication_acte form_input_files=form.reference_publication_acte_files object_name='programme' object_uuid=convention.programme.uuid textarea=True image_only=True file_list=convention.programme.reference_publication_acte|get_files_from_textfiles object_field="programme__reference_publication_acte__"|add:form.uuid.value %}
Vérifier mes informations sur cadastre.gouv.fr - {% include "common/form/input_upload.html" with form_input=form.reference_cadastrale form_input_files=form.reference_cadastrale_files object_name='programme' object_uuid=convention.programme.uuid image_only=True file_list=convention.programme.reference_cadastrale|get_files_from_textfiles object_field="programme__reference_cadastrale__"|add:form.uuid.value %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.reference_cadastrale form_input_files=form.reference_cadastrale_files object_name='programme' object_uuid=convention.programme.uuid image_only=True file_list=convention.programme.reference_cadastrale|get_files_from_textfiles object_field="programme__reference_cadastrale__"|add:form.uuid.value %}
{% include "common/form/download_upload_form.html" with file_type='cadastre' upform=upform what="références cadastrales"%} @@ -219,7 +219,7 @@

Agrément de gestionnaire ou agrément d'intermédiation

- {% include "common/form/input_upload.html" with form_input=form.effet_relatif form_input_files=form.effet_relatif_files object_name='programme' object_uuid=convention.programme.uuid image_only=True file_list=convention.programme.effet_relatif|get_files_from_textfiles object_field="programme__effet_relatif__"|add:form.uuid.value %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.effet_relatif form_input_files=form.effet_relatif_files object_name='programme' object_uuid=convention.programme.uuid image_only=True file_list=convention.programme.effet_relatif|get_files_from_textfiles object_field="programme__effet_relatif__"|add:form.uuid.value %}

@@ -228,10 +228,10 @@

Agrément de gestionnaire ou agrément d'intermédiation

- {% include "common/form/input_upload.html" with form_input=form.acte_de_propriete form_input_files=form.acte_de_propriete_files object_name='programme' object_uuid=convention.programme.uuid file_list=convention.programme.acte_de_propriete|get_files_from_textfiles object_field="programme__acte_de_propriete__"|add:form.uuid.value %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.acte_de_propriete form_input_files=form.acte_de_propriete_files object_name='programme' object_uuid=convention.programme.uuid file_list=convention.programme.acte_de_propriete|get_files_from_textfiles object_field="programme__acte_de_propriete__"|add:form.uuid.value %}
- {% include "common/form/input_upload.html" with form_input=form.certificat_adressage form_input_files=form.certificat_adressage_files object_name='programme' object_uuid=convention.programme.uuid file_list=convention.programme.certificat_adressage|get_files_from_textfiles object_field="programme__certificat_adressage__"|add:form.uuid.value %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.certificat_adressage form_input_files=form.certificat_adressage_files object_name='programme' object_uuid=convention.programme.uuid file_list=convention.programme.certificat_adressage|get_files_from_textfiles object_field="programme__certificat_adressage__"|add:form.uuid.value %}
diff --git a/templates/conventions/common/form_commentaires.html b/templates/conventions/common/form_commentaires.html index 1d302df7a..744b3e821 100644 --- a/templates/conventions/common/form_commentaires.html +++ b/templates/conventions/common/form_commentaires.html @@ -4,7 +4,7 @@
{% if convention.programme.is_foyer or convention.programme.is_residence %} - {% include "common/form/input_upload.html" with form_input=form.attached form_input_files=form.attached_files object_name='convention' object_uuid=convention.uuid file_list=convention.attached|get_files_from_textfiles textarea=False object_field="convention__attached__"|add:form.uuid.value %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.attached form_input_files=form.attached_files object_name='convention' object_uuid=convention.uuid file_list=convention.attached|get_files_from_textfiles textarea=False object_field="convention__attached__"|add:form.uuid.value %} {% endif %} @@ -13,7 +13,7 @@ Ces informations sont complémentaires et à destination de l’instructeur. Elles ne figureront pas dans le document final de la convention.

{% with is_bailleur=request|is_bailleur %} - {% include "common/form/input_upload.html" with form_input=form.commentaires form_input_files=form.commentaires_files object_name='convention' object_uuid=convention.uuid file_list=convention.commentaires|get_files_from_textfiles textarea=True verticalDisplay=True object_field="convention__commentaires__"|add:form.uuid.value editable=is_bailleur %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.commentaires form_input_files=form.commentaires_files object_name='convention' object_uuid=convention.uuid file_list=convention.commentaires|get_files_from_textfiles textarea=True verticalDisplay=True object_field="convention__commentaires__"|add:form.uuid.value editable=is_bailleur %} {% endwith %}
diff --git a/templates/conventions/denonciation.html b/templates/conventions/denonciation.html index c0003d51c..70e933064 100644 --- a/templates/conventions/denonciation.html +++ b/templates/conventions/denonciation.html @@ -32,7 +32,7 @@

Motif de dénonciation

{% include "common/form/input_textarea.html" with form_input=form.motif_denonciation object_field="convention__motif_denonciation__"|add:form.uuid.value %}
- {% include "common/form/input_upload.html" with form_input=form.fichier_instruction_denonciation form_input_files=form.fichier_instruction_denonciation_files object_name='convention' object_uuid=convention.uuid file_list=convention.fichier_instruction_denonciation|get_files_from_textfiles object_field="convention__fichier_instruction_denonciation__"|add:form.uuid.value %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.fichier_instruction_denonciation form_input_files=form.fichier_instruction_denonciation_files object_name='convention' object_uuid=convention.uuid file_list=convention.fichier_instruction_denonciation|get_files_from_textfiles object_field="convention__fichier_instruction_denonciation__"|add:form.uuid.value %}
{% include "conventions/common/form_footer_button.html" %} diff --git a/templates/conventions/edd.html b/templates/conventions/edd.html index bbb61cb5e..d1659e955 100644 --- a/templates/conventions/edd.html +++ b/templates/conventions/edd.html @@ -114,15 +114,15 @@

EDD Simplifié


- {% include "common/form/input_upload.html" with form_input=form.edd_volumetrique form_input_files=form.edd_volumetrique_files object_name='lot' object_uuid=convention.lot.uuid textarea=True image_only=True file_list=convention.lot.edd_volumetrique|get_files_from_textfiles object_field="lot__edd_volumetrique__"|add:form.lot_uuid.value %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.edd_volumetrique form_input_files=form.edd_volumetrique_files object_name='lot' object_uuid=convention.lot.uuid textarea=True image_only=True file_list=convention.lot.edd_volumetrique|get_files_from_textfiles object_field="lot__edd_volumetrique__"|add:form.lot_uuid.value %} {% include "common/form/input_textarea.html" with form_input=form.mention_publication_edd_volumetrique object_field="programme__mention_publication_edd_volumetrique__"|add:form.uuid.value %}
- {% include "common/form/input_upload.html" with form_input=form.edd_classique form_input_files=form.edd_classique_files object_name='lot' object_uuid=convention.lot.uuid textarea=True image_only=True file_list=convention.lot.edd_classique|get_files_from_textfiles object_field="lot__edd_classique__"|add:form.lot_uuid.value %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.edd_classique form_input_files=form.edd_classique_files object_name='lot' object_uuid=convention.lot.uuid textarea=True image_only=True file_list=convention.lot.edd_classique|get_files_from_textfiles object_field="lot__edd_classique__"|add:form.lot_uuid.value %} {% include "common/form/input_textarea.html" with form_input=form.mention_publication_edd_classique object_field="programme__mention_publication_edd_classique__"|add:form.uuid.value %}
- {% include "common/form/input_upload.html" with form_input=form.edd_stationnements form_input_files=form.edd_stationnements_files object_name='programme' object_uuid=convention.programme.uuid textarea=True image_only=True file_list=convention.programme.edd_stationnements|get_files_from_textfiles object_field="programme__edd_stationnements__"|add:form.uuid.value %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.edd_stationnements form_input_files=form.edd_stationnements_files object_name='programme' object_uuid=convention.programme.uuid textarea=True image_only=True file_list=convention.programme.edd_stationnements|get_files_from_textfiles object_field="programme__edd_stationnements__"|add:form.uuid.value %} diff --git a/templates/conventions/journal.html b/templates/conventions/journal.html index 34be3e632..2dc443009 100644 --- a/templates/conventions/journal.html +++ b/templates/conventions/journal.html @@ -33,7 +33,7 @@

Ajouter un évènement au journal

- {% include "common/form/input_upload.html" with no_title=True form_input=form.pieces_jointes form_input_files=form.pieces_jointes_files object_name='convention' object_uuid=convention.uuid file_list=evenement.pieces_jointes|get_files_from_textfiles object_field="evenement__pieces_jointes__"|add:form.uuid.value %} + {% include "common/form/input_upload.html" with single_file=False no_title=True form_input=form.pieces_jointes form_input_files=form.pieces_jointes_files object_name='convention' object_uuid=convention.uuid file_list=evenement.pieces_jointes|get_files_from_textfiles object_field="evenement__pieces_jointes__"|add:form.uuid.value %}
@@ -80,7 +80,7 @@

Modifier l'évènement du {{ evenement.survenu_

- {% include "common/form/input_upload.html" with no_title=True form_input=form.pieces_jointes form_input_files=form.pieces_jointes_files object_name='convention' object_uuid=convention.uuid file_list=evenement.pieces_jointes|get_files_from_textfiles object_field="evenement__pieces_jointes__"|add:form.uuid.value %} + {% include "common/form/input_upload.html" with single_file=False no_title=True form_input=form.pieces_jointes form_input_files=form.pieces_jointes_files object_name='convention' object_uuid=convention.uuid file_list=evenement.pieces_jointes|get_files_from_textfiles object_field="evenement__pieces_jointes__"|add:form.uuid.value %}
diff --git a/templates/conventions/resiliation.html b/templates/conventions/resiliation.html index 15088bb80..dc661b402 100644 --- a/templates/conventions/resiliation.html +++ b/templates/conventions/resiliation.html @@ -19,7 +19,7 @@

Motif de résiliation

{% include "common/form/input_textarea.html" with form_input=form.motif_resiliation object_field="convention__motif_resiliation__"|add:form.uuid.value %}
- {% include "common/form/input_upload.html" with form_input=form.commentaires form_input_files=form.commentaires_files object_name='convention' object_uuid=convention.uuid file_list=convention.commentaires|get_files_from_textfiles textarea=True verticalDisplay=True object_field="convention__commentaires__"|add:form.uuid.value %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.commentaires form_input_files=form.commentaires_files object_name='convention' object_uuid=convention.uuid file_list=convention.commentaires|get_files_from_textfiles textarea=True verticalDisplay=True object_field="convention__commentaires__"|add:form.uuid.value %}
{% include "conventions/common/form_footer_button.html" %} diff --git a/templates/conventions/resiliation_acte.html b/templates/conventions/resiliation_acte.html index c5ad1521f..c625e8980 100644 --- a/templates/conventions/resiliation_acte.html +++ b/templates/conventions/resiliation_acte.html @@ -11,7 +11,7 @@ {% csrf_token %}
- {% include "common/form/input_upload.html" with form_input=form.fichier_instruction_resiliation form_input_files=form.fichier_instruction_resiliation_files object_name='convention' object_uuid=convention.uuid file_list=convention.fichier_instruction_resiliation|get_files_from_textfiles object_field="convention__fichier_instruction_resiliation__"|add:form.uuid.value %} + {% include "common/form/input_upload.html" with single_file=False form_input=form.fichier_instruction_resiliation form_input_files=form.fichier_instruction_resiliation_files object_name='convention' object_uuid=convention.uuid file_list=convention.fichier_instruction_resiliation|get_files_from_textfiles object_field="convention__fichier_instruction_resiliation__"|add:form.uuid.value %}
{% include "conventions/common/form_footer_button.html" %}
diff --git a/templates/settings/delegataires/form.html b/templates/settings/delegataires/form.html index df770ec92..5d59cda73 100644 --- a/templates/settings/delegataires/form.html +++ b/templates/settings/delegataires/form.html @@ -68,7 +68,7 @@

Gestion des délégataires

{% endif %} diff --git a/templates/settings/delegataires/preview.html b/templates/settings/delegataires/preview.html index 045009b1c..a4b270298 100644 --- a/templates/settings/delegataires/preview.html +++ b/templates/settings/delegataires/preview.html @@ -79,7 +79,7 @@

Impact de la réassignation