Skip to content

Commit 4ebf190

Browse files
committed
Consistent behaviour as other flags
1 parent f80315c commit 4ebf190

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

backend/grants/admin.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ class GrantAdmin(ExportMixin, ConferencePermissionMixin, admin.ModelAdmin):
403403
"country",
404404
"is_proposed_speaker",
405405
"is_confirmed_speaker",
406-
"has_invitation_letter_request_flag",
406+
"has_sent_invitation_letter_request",
407407
"emoji_gender",
408408
"conference",
409409
"status",
@@ -586,10 +586,11 @@ def user_has_ticket(self, obj: Grant) -> bool:
586586
def has_voucher(self, obj: Grant) -> bool:
587587
return obj.has_voucher
588588

589-
@admin.display(description="📧", boolean=True)
590-
def has_invitation_letter_request_flag(self, obj: Grant) -> bool:
591-
"""Display flag indicating if user has submitted an invitation letter request"""
592-
return obj.has_invitation_letter_request
589+
@admin.display(description="📧")
590+
def has_sent_invitation_letter_request(self, obj: Grant) -> bool:
591+
if obj.has_invitation_letter_request:
592+
return "📧"
593+
return ""
593594

594595
def get_queryset(self, request):
595596
qs = (

0 commit comments

Comments
 (0)