diff --git a/AKModel/models.py b/AKModel/models.py index 979f005f70ed48e2bd73daad4d21dbe2160b9aff..6d17aab980fa073338e4a510549dde15318b47f7 100644 --- a/AKModel/models.py +++ b/AKModel/models.py @@ -529,7 +529,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)