Skip to content

Commit 53ccf88

Browse files
committed
profile.user is None validation
1 parent 1e10a23 commit 53ccf88

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

partner_programs/admin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def get_export_file(self, partner_program: PartnerProgram):
7575

7676
response_data = tablib.Dataset(headers=column_names)
7777
for profile in profiles:
78+
if profile.user is None:
79+
continue
7880
row = [
7981
profile.user.first_name,
8082
profile.user.last_name,

0 commit comments

Comments
 (0)