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