Skip to content

Inconsistency with default validators and IS_EMPTY_OR #752

@nursix

Description

@nursix

All default validators are IS_EMPTY_OR unless the field is notnull=True - except for reference types, which never are IS_EMPTY_OR.

This seems odd - why do reference types require a value by default, but all other field types do not? Any good reason for that? Or is it a bug?

in pydal/objects.py get_default_validator()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions