File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 3131from schedule .models import ScheduleItem
3232from submissions .models import Submission
3333from .models import Grant , GrantConfirmPendingStatusProxy
34- from django .db .models import Exists , OuterRef , F
34+ from django .db .models import Exists , OuterRef
3535from pretix import user_has_admission_ticket
3636
3737from 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 )
Original file line number Diff line number Diff line change @@ -334,7 +334,6 @@ def current_or_pending_status(self):
334334 return self .pending_status or self .status
335335
336336
337-
338337class GrantConfirmPendingStatusProxy (Grant ):
339338 class Meta :
340339 proxy = True
You can’t perform that action at this time.
0 commit comments