Changes between Initial Version and Version 1 of Ticket #28507


Ignore:
Timestamp:
Aug 18, 2017, 12:08:14 PM (7 years ago)
Author:
kamni
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28507 – Description

    initial v1  
    1 Currently ValidationErrors (`django.core.exceptions.ValidationError`) that have identical `messages` don't equal each other, which is counter-intuitive, and can make certain kinds of testing more complicated. Please add an `__eq__` method that allows two ValidationErrors to be compared.
     1Currently ValidationErrors (`django.core.exceptions.ValidationError`) that have identical `messages` don't equal each other, which is counter-intuitive, and can make certain kinds of testing more complicated. Please add an `__eq__` method that allows two ValidationErrors to be compared.
     2
     3Ideally, this would be more than just a simple `self.messages == other.messages`. It would be most helpful if the comparison were independent of the order in which errors were raised in a field or in `non_field_errors`.
Back to Top