From 0e612cc2f9126026a1f7e37401c2203b96e50bb7 Mon Sep 17 00:00:00 2001 From: Eric Lipe Date: Tue, 10 Dec 2024 11:50:35 -0500 Subject: [PATCH] - linting --- tdrs-backend/tdpservice/users/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()