Skip to content

Float validator fails on more that 3 digits after decimal separator #80

Description

@hvelarde

I have a couple of fields defined this way:

class IPin(model.Schema):
    """A Pin."""
    ...
    latitude = schema.Float(
        title=_(u'label_latitude', default=u'Latitude'),
        required=True,
        default=0.0,
    )

    longitude = schema.Float(
        title=_(u'label_longitude', default=u'Longitude'),
        required=True,
        default=0.0,
    )

the validator accepts a number like -12,345 but fails with something like -12,3456 with:

The entered value is not a valid decimal literal.

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