nl: if settings.USE_TZ is true and value is not None and call to the function timezone.is_naive with an argument value, evaluates to true,
code: if settings . USE_TZ and value is not None and timezone . is_naive ( value ) :