We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bb3a20 commit 3f64caaCopy full SHA for 3f64caa
src/django_enum/fields.py
@@ -639,8 +639,6 @@ def get_default(self) -> Any:
639
return self.to_python(super().get_default())
640
except ValidationError:
641
return super().get_default()
642
- elif self.enum and issubclass(self.enum, Flag):
643
- return 0
644
645
646
def validate(self, value: Any, model_instance: Optional[Model]):
0 commit comments