Skip to content

Commit

Permalink
Merge pull request #1486 from bcgov/fix/prashanth-bug-chgng-user-name
Browse files Browse the repository at this point in the history
fix issue of updating gov users with "Government of B.C." in database.
  • Loading branch information
prv-proton authored Dec 18, 2024
2 parents d425239 + 376b5d4 commit 7d397b3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions backend/lcfs/web/api/notification/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7d397b3

Please sign in to comment.