summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog/en/changelog_2022-06-15.md25
-rw-r--r--changelog/fr/changelog_2023-01-25.md17
-rw-r--r--ishtar_common/wizards.py5
3 files changed, 32 insertions, 15 deletions
diff --git a/changelog/en/changelog_2022-06-15.md b/changelog/en/changelog_2022-06-15.md
index 84862d73c..e995f1659 100644
--- a/changelog/en/changelog_2022-06-15.md
+++ b/changelog/en/changelog_2022-06-15.md
@@ -1,3 +1,10 @@
+v4.0.52 - 2099-12-01
+--------------------
+
+### Bug fixes ###
+- message after creation: use the generate_cached_label if no label is available
+
+
v4.0.51 - 2023-07-05
--------------------
@@ -6,7 +13,7 @@ v4.0.51 - 2023-07-05
### Bug fixes ###
- fix parcel table - wizard summary (inappropriate l10n)
-- check of external identifiers when updating cached labels (refs #5603)
+- check of external identifiers when updating cached labels (#5603)
v4.0.50 - 2023-07-03
@@ -19,7 +26,7 @@ v4.0.50 - 2023-07-03
### Bug fixes ###
- Operation form: the operation code field (Patriarche) is no longer optional
-- fix "*" search for text fields (refs #5325)
+- fix "*" search for text fields (#5325)
- forms - unit input: fix round float display
- sheet: fix float display for hectare
- fix crash on qrcode generation for base finds
@@ -66,7 +73,7 @@ v4.0.46 - 2023-05-26
- links from other sheet to the sheets of municipalities/geographical areas
### Bug fixes ###
-- recalculation of the weight of a container when find is removed (refs #5470)
+- recalculation of the weight of a container when find is removed (#5470)
### Technical ###
@@ -79,7 +86,7 @@ v4.0.45 - 2023-05-15
### Features/improvements ###
- Administration: improved display of subcategories (in color)
-- Document - bulk update: add modification of tags (refs #5415)
+- Document - bulk update: add modification of tags (#5415)
### Bug fixes ###
- Fix town search for warehouses and organizations
@@ -106,16 +113,16 @@ v4.0.44 - 2023-04-17
### Bug fixes ###
- Json fields: fix bad save of multi values
-- Cascade update from warehouse to containers (refs #5432)
+- Cascade update from warehouse to containers (#5432)
- Sheets: fix history view with associated geo
- Containers: remove division search
-- Image detail: do not display Modify link when not relevant (refs #5438)
-- Fix french label for geo types (refs #5577)
-- Fix permissions for treatments requests (refs #5441)
+- Image detail: do not display Modify link when not relevant (#5438)
+- Fix french label for geo types (#5577)
+- Fix permissions for treatments requests (#5441)
### Technical ###
- Load task refactoring - manage external_id regen with tasks
-- Update and fix translations (refs #5578, refs #5579, refs #5581)
+- Update and fix translations (#5578, #5579, #5581)
- Importer export: fix pre_importer call
- Force using 128 bits salt for password hasher
- Mark false security issues detected by bandit
diff --git a/changelog/fr/changelog_2023-01-25.md b/changelog/fr/changelog_2023-01-25.md
index cbafb88c0..147b4b36b 100644
--- a/changelog/fr/changelog_2023-01-25.md
+++ b/changelog/fr/changelog_2023-01-25.md
@@ -1,12 +1,19 @@
+v4.0.52 - 2099-12-01
+--------------------
+
+### Corrections de dysfonctionnements ###
+- message après création : utilisation de generate_cached_label si aucun label n'est disponible
+
+
v4.0.51 - 2023-07-05
--------------------
### Fonctionnalités/améliorations ###
-- fiche : ajouter un bouton de rafraîchissement pour mettre à jour les informations
+- fiche : ajout d'un bouton de rafraîchissement pour mettre à jour les informations
### Corrections de dysfonctionnements ###
- correction de l'affichage des parcelles et du résumé du `wizard` (localisation inappropriée)
-- vérification des identifiants externes lors de la mise à jour des libellés en cache (refs #5603)
+- vérification des identifiants externes lors de la mise à jour des libellés en cache (#5603)
v4.0.50 - 2023-07-03
@@ -19,7 +26,7 @@ v4.0.50 - 2023-07-03
### Corrections de dysfonctionnements ###
- Formulaire opération : le champ code opération (Patriarche) n'est plus facultatif
-- Correction de la recherche "*" pour les champs texte (refs #5325)
+- Correction de la recherche "*" pour les champs texte (#5325)
- Formulaires - champ unité : correction des arrondis des flottants
- Fiche : correction de l'affichage à virgule pour les hectares
- Correction d'erreur lors de la génération de qrcode pour le mobilier d'origine
@@ -68,7 +75,7 @@ v4.0.46 - 2023-05-26
- liens depuis les autres fiches vers les fiches communes/zones géographiques
### Corrections de dysfonctionnements ###
-- Recalcul du poids d'un contenant lorsque du mobilier en est retiré (refs #5470)
+- Recalcul du poids d'un contenant lorsque du mobilier en est retiré (#5470)
### Technique ###
- JS : correction UnitWidget (localisation inappropriée)
@@ -80,7 +87,7 @@ v4.0.45 - 2023-05-15
### Fonctionnalités/améliorations ###
- Administration : affichage des sous-catégories amélioré (en couleur)
-- Document - modification par lot : modification des étiquettes (refs #5415)
+- Document - modification par lot : modification des étiquettes (#5415)
### Corrections de dysfonctionnements ###
- Correction de la recherche commune pour les lieux de conservation et les organisations
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index d7188faf5..2cf7a1b9c 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -1083,7 +1083,10 @@ class Wizard(IshtarWizard):
if getattr(self, "modification", False):
msg += str(_("{} modified.")).format(obj)
else:
- msg += str(_("{} created.")).format(obj)
+ lbl = str(obj)
+ if not lbl and hasattr(obj, "_generate_cached_label"):
+ lbl = obj._generate_cached_label()
+ msg += str(_("{} created.")).format(lbl)
messages.add_message(self.request, messages.INFO, msg)
if self.redirect_url:
url = reverse(self.redirect_url)