[IMP] osv/fields.py: improve code change of rev eea07e27