File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,9 @@ class TextChoices(
114
114
accepts enum-properties property lists.
115
115
"""
116
116
117
+ def __hash__ (self ):
118
+ return DjangoTextChoices .__hash__ (self )
119
+
117
120
118
121
class IntegerChoices (
119
122
DjangoSymmetricMixin ,
@@ -125,6 +128,9 @@ class IntegerChoices(
125
128
accepts enum-properties property lists.
126
129
"""
127
130
131
+ def __hash__ (self ):
132
+ return DjangoIntegerChoices .__hash__ (self )
133
+
128
134
129
135
class FloatChoices (
130
136
DjangoSymmetricMixin ,
@@ -137,6 +143,10 @@ class FloatChoices(
137
143
property lists.
138
144
"""
139
145
146
+ def __hash__ (self ):
147
+ return float .__hash__ (self )
148
+
149
+
140
150
except (ImportError , ModuleNotFoundError ):
141
151
142
152
# 3.11 - extend from Enum so base type check does not throw type error
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ exclude = ["django_enum/tests"]
42
42
[tool .poetry .dependencies ]
43
43
python = " >=3.7,<4.0"
44
44
Django = " >=3.2,<5.0"
45
- enum-properties = {version = " ^1.2 .0" , optional = true }
45
+ enum-properties = {version = " ^1.7 .0" , optional = true }
46
46
django-filter = {version = " >=21,<24" , optional = true }
47
47
djangorestframework = {version = " ^3.9" , optional = true }
48
48
You can’t perform that action at this time.
0 commit comments