Skip to content

Commit 0703a7b

Browse files
committed
small changes
1 parent 194e30a commit 0703a7b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

backend/grants/admin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from schedule.models import ScheduleItem
3232
from submissions.models import Submission
3333
from .models import Grant, GrantConfirmPendingStatusProxy
34-
from django.db.models import Exists, OuterRef, F
34+
from django.db.models import Exists, OuterRef
3535
from pretix import user_has_admission_ticket
3636

3737
from django.contrib.admin import SimpleListFilter
@@ -588,11 +588,11 @@ def has_voucher(self, obj: Grant) -> bool:
588588
@admin.display(description="📧", boolean=True)
589589
def has_invitation_letter_request_flag(self, obj: Grant) -> bool:
590590
"""Display flag indicating if user has submitted an invitation letter request"""
591-
return getattr(obj, 'has_invitation_letter_request', False)
591+
return obj.has_invitation_letter_request
592592

593593
def get_queryset(self, request):
594594
from visa.models import InvitationLetterRequest
595-
595+
596596
qs = (
597597
super()
598598
.get_queryset(request)

backend/grants/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ def current_or_pending_status(self):
334334
return self.pending_status or self.status
335335

336336

337-
338337
class GrantConfirmPendingStatusProxy(Grant):
339338
class Meta:
340339
proxy = True

0 commit comments

Comments
 (0)