From 15b4df54bfd638c0645b028154cbd6bfba784c46 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 8 Dec 2019 14:51:23 -0400 Subject: [PATCH] Don't use attribute name if there is no help text Signed-off-by: Roberto Rosario --- HISTORY.rst | 2 ++ mayan/apps/navigation/classes.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index bc19dfb992..4ab51384f0 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -8,6 +8,8 @@ - Add targets to run staging containers using RabbitMQ as broker. - Add test for GitLab issue #702 +- Don't set SourceColumns to the attribute name when no help text + is defined. 3.3.3 (2019-12-05) ================== diff --git a/mayan/apps/navigation/classes.py b/mayan/apps/navigation/classes.py index 9f7bcad288..c553c6acac 100644 --- a/mayan/apps/navigation/classes.py +++ b/mayan/apps/navigation/classes.py @@ -754,7 +754,7 @@ class SourceColumn(object): name=name, model=model ) except AttributeError: - self._help_text = self.attribute + self._help_text = None self.help_text = self._help_text