Revert "[AIRFLOW-5490] Fix incorrect None comparison (#6109)" (#6222)

This reverts commit 65600048b5.
This commit is contained in:
Ash Berlin-Taylor 2019-10-02 21:26:19 +01:00 коммит произвёл Chao-Han Tsai
Родитель 8b71cb3cf6
Коммит b35972fc9c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -339,8 +339,8 @@ class AirflowSecurityManager(SecurityManager, LoggingMixin):
pvms = (
sesh.query(sqla_models.PermissionView)
.filter(or_(
sqla_models.PermissionView.permission is None, # noqa pylint: disable=singleton-comparison
sqla_models.PermissionView.view_menu is None, # noqa pylint: disable=singleton-comparison
sqla_models.PermissionView.permission == None, # noqa pylint: disable=singleton-comparison
sqla_models.PermissionView.view_menu == None, # noqa pylint: disable=singleton-comparison
))
)
# Since FAB doesn't define ON DELETE CASCADE on these tables, we need