1
0
mirror of https://github.com/django/django.git synced 2025-10-29 00:26:07 +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

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