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

Allow for nulls in the exists method #571

Merged
merged 1 commit into from
Sep 3, 2019

Commits on Aug 30, 2019

  1. Allow for nulls in the exists method

    If the allow_null argument is true we now allow any result
    to return as true. This nullifies the bool() check
    So seems bad, but in some cases when an attribute exists
    When looking up 'get_object_attribute_names' we want
    the value of that attribute even if it is null
    In the case of an allow_null then only a KeyError
    will return False
    syncrou committed Aug 30, 2019
    Configuration menu
    Copy the full SHA
    b1e6c8d View commit details
    Browse the repository at this point in the history