Browse Source

Add args to exception to display the correct message in the UI.

pull/487/head
Jairo Llopis 10 years ago
committed by Enric Tobella
parent
commit
a655699da3
  1. 1
      partner_firstname/exceptions.py

1
partner_firstname/exceptions.py

@ -24,3 +24,4 @@ class EmptyNamesError(exceptions.ValidationError):
self.record = record
self._value = value
self.name = _("Error(s) with partner %d's name.") % record.id
self.args = (self.name, value)
Loading…
Cancel
Save