[django/django] 7fe60a: Fixed #22588 -- Fix RegexValidator __eq__

1 view
Skip to first unread message

GitHub

unread,
May 8, 2014, 10:51:46 PM5/8/14
to django-...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/django/django
Commit: 7fe60ae64ad712430bce26af7812ed4452a91af0
https://github.com/django/django/commit/7fe60ae64ad712430bce26af7812ed4452a91af0
Author: David Szotten <davids...@gmail.com>
Date: 2014-05-08 (Thu, 08 May 2014)

Changed paths:
M django/core/validators.py
M tests/validators/tests.py

Log Message:
-----------
Fixed #22588 -- Fix RegexValidator __eq__

Compare parameters instead of re.pattern instances, and add the other
parameters to the comparison. Also add a __ne__ to make assertNotEqual
work properly.


Reply all
Reply to author
Forward
0 new messages