Skip to content

Commit

Permalink
Merge pull request #1081 from AI4Bharat/payment_report/organization
Browse files Browse the repository at this point in the history
added '*' in front of users who are marked inactive at organization l…
  • Loading branch information
ishvindersethi22 authored Sep 23, 2024
2 parents 36ae80b + 6ab3b35 commit 8ef29a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/organizations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2665,6 +2665,11 @@ def send_user_analytics(self, request, pk=None):

project_type = request.data.get("project_type")

inactive_users = User.objects.filter(id=user_id, is_active=False)

for inactive_user in inactive_users:
inactive_user.username = "*" + inactive_user.username

send_user_reports_mail_org.delay(
org_id=organization.id,
user_id=user_id,
Expand Down

0 comments on commit 8ef29a1

Please sign in to comment.