Example #1
0
 def full_messages(self):
     """Returns all the full error messages as a list."""
     return flatten(
         [self.full_messages_for(field) for field in self._errors])
Example #2
0
 def full_messages(self):
     """Returns all the full error messages as a list."""
     return flatten(
         [self.full_messages_for(field) for field in self._errors]
     )
Example #3
0
 def count(self):
     """Returns the number of error messages."""
     return len(flatten(self._errors.values()))
Example #4
0
 def count(self):
     """Returns the number of error messages."""
     return len(flatten(self._errors.values()))