From 687bd77cfbde539dcf22eb44ad2f64ef0d0f83de Mon Sep 17 00:00:00 2001 From: Tore Brede <Tore.Brede@uib.no> Date: Tue, 9 Nov 2021 08:52:02 +0100 Subject: [PATCH] GREG-94: Making method static --- gregui/api/views/invitation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gregui/api/views/invitation.py b/gregui/api/views/invitation.py index 455dbb0e..231c7d8a 100644 --- a/gregui/api/views/invitation.py +++ b/gregui/api/views/invitation.py @@ -267,7 +267,8 @@ class InvitedGuestView(GenericAPIView): # TODO: Send an email to the sponsor? return Response(status=status.HTTP_200_OK) - def _verified_fnr_already_exists(self, person) -> bool: + @staticmethod + def _verified_fnr_already_exists(person) -> bool: try: person.identities.get( type=Identity.IdentityType.NORWEGIAN_NATIONAL_ID_NUMBER, -- GitLab