@@ -94,7 +94,6 @@ class CustomUserAdmin(admin.ModelAdmin):
9494 "status" ,
9595 "city" ,
9696 "region" ,
97- "organization" , # TODO need to be removed in future.
9897 "speciality" ,
9998 "v2_speciality" ,
10099 "key_skills" ,
@@ -264,6 +263,7 @@ def get_export_users_emails(self, users):
264263 "collaborations__project" ,
265264 "collaborations__project__industry" ,
266265 "skills__skill" ,
266+ "education" ,
267267 )
268268 )
269269 little_mans = users .filter (birthday__lte = date_limit_18 )
@@ -290,7 +290,7 @@ def get_export_users_emails(self, users):
290290 baby .first_name + " " + baby .last_name ,
291291 today .year - baby .birthday .year ,
292292 ", " .join (interests ),
293- baby .organization ,
293+ "; " . join ( baby .education . values_list ( "organization_name" , flat = True )) ,
294294 baby .v2_speciality if baby .v2_speciality else baby .speciality ,
295295 baby .email ,
296296 ]
@@ -306,7 +306,7 @@ def get_export_users_emails(self, users):
306306 big_man .first_name + " " + big_man .last_name ,
307307 today .year - big_man .birthday .year ,
308308 ", " .join (industry_names ),
309- big_man .organization ,
309+ "; " . join ( big_man .education . values_list ( "organization_name" , flat = True )) ,
310310 big_man .v2_speciality
311311 if big_man .v2_speciality
312312 else big_man .speciality ,
0 commit comments