6 Feb
2018
6 Feb
'18
7:13 a.m.
Displaying the names stored in django probably won't happen. Matching the names in django with the members in lists would require lots of code Really? I don't know Python, but wouldn't it be possible (just as an option) to do something like this:
user = User.objects.get(email = ...) if user is found then print next to email address: user.first_name + user.last_name
Yeah, that way you make quite a lot of database queries. to make it perform better, you'd need to get all user accounts and match them to the subscribers. Since users can have multiple addresses you need to check all their addresses.
Making this quite expensive for a very small use case.