Commit e8ce8c56 authored by Michal Čihař's avatar Michal Čihař

Better validation error messages

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent e9807a73
......@@ -181,5 +181,7 @@ class Invoice(models.Model):
if overlapping.exists():
raise ValidationError(
'Overlapping invoices exist: {0}'.format(overlapping)
'Overlapping invoices exist: {0}'.format(
', '.join([str(x) for x in overlapping])
)
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment