Skip to content

Commit 3f64caa

Browse files
committed
remove no longer necessary catch all default set for flag fields
1 parent 2bb3a20 commit 3f64caa

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/django_enum/fields.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,6 @@ def get_default(self) -> Any:
639639
return self.to_python(super().get_default())
640640
except ValidationError:
641641
return super().get_default()
642-
elif self.enum and issubclass(self.enum, Flag):
643-
return 0
644642
return super().get_default()
645643

646644
def validate(self, value: Any, model_instance: Optional[Model]):

0 commit comments

Comments
 (0)