Skip to content

4.5.1

Latest

Choose a tag to compare

@coleifer coleifer released this 08 Sep 01:19

Couple little things for EnumField.

  • EnumField and IntEnumField validate member value types (str and int respectively) at field construction.
  • EnumField and IntEnumField default choices to (value, name) pairs derived from the enum.
  • Fix #3075, migration generation for EnumField. Generated migrations will emit the storage field type (e.g. IntegerField) rather than EnumField().

View commits

1357414699373