Skip to content

Commit faf97d4

Browse files
committed
chore: Add empty_values
1 parent 6f16f6b commit faf97d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django_mongoengine/fields/djangoflavor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
class DjangoField:
2222
get_choices = Field.__dict__["get_choices"]
23+
empty_values = [None, "", [], (), {}]
2324

2425
def _get_flatchoices(self):
2526
"""Flattened version of choices tuple."""

0 commit comments

Comments
 (0)