Loading django/core/exceptions.py +4 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,10 @@ class ValidationError(Exception): @property def message_dict(self): # Trigger an AttributeError if this ValidationError # doesn't have an error_dict. getattr(self, 'error_dict') return dict(self) @property Loading Loading
django/core/exceptions.py +4 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,10 @@ class ValidationError(Exception): @property def message_dict(self): # Trigger an AttributeError if this ValidationError # doesn't have an error_dict. getattr(self, 'error_dict') return dict(self) @property Loading