Browse Source

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

pull/104/head
Jairo Llopis 10 years ago
parent
commit
2dcb159bdd
  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