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])
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] )
def count(self): """Returns the number of error messages.""" return len(flatten(self._errors.values()))