We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53ccf88 commit ba432e1Copy full SHA for ba432e1
1 file changed
partner_programs/admin.py
@@ -76,14 +76,15 @@ def get_export_file(self, partner_program: PartnerProgram):
76
response_data = tablib.Dataset(headers=column_names)
77
for profile in profiles:
78
if profile.user is None:
79
- continue
80
- row = [
81
- profile.user.first_name,
82
- profile.user.last_name,
83
- profile.user.patronymic,
84
- profile.user.email,
85
- str(profile.user.birthday),
86
- ]
+ row = [""] * 5
+ else:
+ row = [
+ profile.user.first_name,
+ profile.user.last_name,
+ profile.user.patronymic,
+ profile.user.email,
+ str(profile.user.birthday),
87
+ ]
88
89
json_data = profile.partner_program_data
90
for key in json_schema:
0 commit comments