diff --git a/tdrs-backend/tdpservice/users/models.py b/tdrs-backend/tdpservice/users/models.py index 3cf094264..217a04b84 100644 --- a/tdrs-backend/tdpservice/users/models.py +++ b/tdrs-backend/tdpservice/users/models.py @@ -120,7 +120,7 @@ def __str__(self): def is_in_group(self, group_names: list) -> bool: """Return whether or not the user is a member of the specified Group(s).""" - if type(group_names) == str: + if type(group_names) is str: group_names = [group_names] return self.groups.filter(name__in=group_names).exists()