From 29c2bc84b02229467fc54e8e6bd2ecf3af1bec80 Mon Sep 17 00:00:00 2001 From: prv-proton Date: Tue, 17 Dec 2024 15:13:14 -0800 Subject: [PATCH] fix issue of updating gov users with "Government of B.C." in database. --- backend/lcfs/web/api/notification/schema.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/backend/lcfs/web/api/notification/schema.py b/backend/lcfs/web/api/notification/schema.py index 30ff2d5f2..30466bfa8 100644 --- a/backend/lcfs/web/api/notification/schema.py +++ b/backend/lcfs/web/api/notification/schema.py @@ -21,13 +21,6 @@ class NotificationUserProfileSchema(BaseSchema): organization_id: Optional[int] = None is_government: bool = False - @model_validator(mode="before") - def update_government_profile(cls, data): - if data.is_government: - data.first_name = "Government of B.C." - data.last_name = "" - return data - @computed_field @property def full_name(self) -> str: