mirror of
https://github.com/django/django.git
synced 2025-06-14 16:09:12 +00:00
Refs #10785 -- Added missing __hash__() method to custom pk test model.
This commit is contained in:
parent
c1fa3fdd04
commit
8fd21b0da3
@ -19,6 +19,9 @@ class MyWrapper:
|
|||||||
return self.value == other.value
|
return self.value == other.value
|
||||||
return self.value == other
|
return self.value == other
|
||||||
|
|
||||||
|
def __hash__(self):
|
||||||
|
return hash(self.value)
|
||||||
|
|
||||||
|
|
||||||
class MyWrapperField(models.CharField):
|
class MyWrapperField(models.CharField):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user