1
0
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:
Jacob Walls 2025-06-09 12:32:55 -04:00 committed by GitHub
parent c1fa3fdd04
commit 8fd21b0da3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):