Skip to content

Commit

Permalink
fix: Fix BooleanField
Browse files Browse the repository at this point in the history
  • Loading branch information
last-partizan committed Nov 16, 2023
1 parent 39cbb2b commit e5a87c6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions django_mongoengine/fields/djangoflavor.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,6 @@ def formfield(self, **kwargs):


class BooleanField(DjangoField):
def __init__(self, *args, **kwargs):
kwargs["blank"] = True

super().__init__(*args, **kwargs)

def formfield(self, **kwargs):
# Unlike most fields, BooleanField figures out include_blank from
# self.null instead of self.blank.
Expand Down

0 comments on commit e5a87c6

Please sign in to comment.