14👍
✅
I would use a clean_field
method for doing “heavy lifting”. For instance if your field requires non-trivial, custom cleaning and/or type conversion etc. If on the other hand the requirement is straightforward such as coercing to int
then the clean_field
is probably an overkill. TypedChoiceField
would be the way to go in that case.
Source:stackexchange.com