Skip to content

Commit

Permalink
fix(backend): use name for exporting credential
Browse files Browse the repository at this point in the history
  • Loading branch information
Adibov committed Dec 6, 2023
1 parent cd51248 commit 0bbdc8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/backend_api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def export_login_credentials(self, request, obj):
status=PresentationParticipation.StatusChoices.PURCHASED):
user_credentials.append(
SkyroomCredentials(registration.username, registration.password,
registration.user.account.email))
registration.user.name))
return convert_credentials_to_csv_response(user_credentials)

@admin.action(description='Send registration emails')
Expand Down Expand Up @@ -120,7 +120,7 @@ def export_login_credentials(self, request, obj):
status=WorkshopRegistration.StatusChoices.PURCHASED):
user_credentials.append(
SkyroomCredentials(registration.username, registration.password,
registration.user.account.email))
registration.user.name))
return convert_credentials_to_csv_response(user_credentials)

@admin.action(description='Send registration emails')
Expand Down

0 comments on commit 0bbdc8f

Please sign in to comment.