Don't use attribute name if there is no help text

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-12-08 14:51:23 -04:00
parent 242a5c1d41
commit 15b4df54bf
2 changed files with 3 additions and 1 deletions

View File

@@ -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)
==================

View File

@@ -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