diff --git a/horizon/dashboards/syspanel/users/tables.py b/horizon/dashboards/syspanel/users/tables.py index 41f0501..d2f7f47 100644 --- a/horizon/dashboards/syspanel/users/tables.py +++ b/horizon/dashboards/syspanel/users/tables.py @@ -106,7 +106,7 @@ class UserFilterAction(tables.FilterAction): q = filter_string.lower() def comp(user): - if q in user.name.lower() or q in user.email.lower(): + if user.name and q in user.name.lower() or user.email and q in user.email.lower(): return True return False