Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
update the readme with a mention about the new field type
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsawatzky committed Jun 11, 2020
1 parent 8c25920 commit db13035
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ If either `load_by` or `dump_by` are unset, they will follow from `by_value`.
Additionally, there is `EnumField.NAME` to be explicit about the load and dump behavior, this
is the same as leaving both `by_value` and either `load_by` and/or `dump_by` unset.

If you want to ensure that the `load_by` and `dump_by` behaviour is always the same you can use
the `StrictEnumField`.

### Custom Error Message

A custom error message can be provided via the `error` keyword argument. It can accept three
Expand Down

0 comments on commit db13035

Please sign in to comment.