Skip to content

IntIntervalField can get invalid values. #47

@tvuotila

Description

@tvuotila

Following Intervals result in invalid or wrong field value when set to IntIntervalField:

  • Interval: IntInterval(None) hyphenized form: - which is invalid value for IntInterval.from_string(' -')
  • Interval IntInterval([None, -3]) hyphenized form - -3 which is invalid value for IntInterval.from_string(' - -3')
  • Interval: IntInterval([None, 3]) hyphenized form - 3 which gives IntInterval('[-3, -3]')

Also, value " " results in IntInterval('[,]') although it is an empty value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions