diff --git a/AKModel/models.py b/AKModel/models.py index 2767effb2817e1710ed967119b8dbe306d3fce5b..fa6a15a075a786438e540e872ee787392584197d 100644 --- a/AKModel/models.py +++ b/AKModel/models.py @@ -527,7 +527,7 @@ class ConstraintViolation(models.Model): # Stringify all other fields for field in self.fields: a = getattr(self, field, None) - if a is not None: + if a is not None and str(a) != '': output.append(f"{field}: {a}") return ", ".join(output)