Skip to content

Commit e6fb0e2

Browse files
committed
corrected based on further recommendation
1 parent e78b731 commit e6fb0e2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

backend/apps/owasp/models/member_profile.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ class Meta:
7171
help_text="LinkedIn username or custom URL ID (e.g., 'john-doe-123')",
7272
)
7373

74-
has_public_member_page = models.BooleanField(default=True)
74+
has_public_member_page = models.BooleanField(
75+
default=True,
76+
verbose_name="Has Public Member Page",
77+
help_text="Whether the member's profile is publicly visible on the OWASP website",
78+
)
7579
is_owasp_staff = models.BooleanField(
7680
default=False,
7781
verbose_name="Is OWASP Staff",

backend/tests/apps/github/management/commands/github_update_users_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ def test_handle_with_empty_user_list(
220220

221221
assert mock_user.bulk_save.call_count == 1
222222
assert mock_user.bulk_save.call_args_list[-1][0][0] == []
223+
assert mock_member_profile.bulk_save.call_count == 1
224+
assert mock_member_profile.bulk_save.call_args_list[-1][0][0] == []
223225

224226
@patch("apps.github.management.commands.github_update_users.MemberProfile")
225227
@patch("apps.github.management.commands.github_update_users.User")

0 commit comments

Comments
 (0)