Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent invalid data to be silently accepted #11

Merged

Commits on Oct 21, 2015

  1. Prevent invalid data to be silently accepted

    When a user wants sets a ``Date`` or ``Datetime`` value and misses
    one of the fields (day, year, hour or minute) it is silently set to
    None without any 'input is not valid' error message being displayed.
    
    Unfortunately it can not be checked on a validator because the input
    value has already been converted to a ``datetime``.
    
    This commit works around it making sure an error is raised and only
    convert it to None if both *day* and *year* are left empty.
    bogdangi authored and gforcada committed Oct 21, 2015
    Configuration menu
    Copy the full SHA
    b0a9533 View commit details
    Browse the repository at this point in the history