Coverage for src/expo_notifications/managers/ticket_manager.py: 100%

1 from django.db import models

2

3

4 class TicketQueryset(models.QuerySet):

5 def check_receipts(self) -> None:

6 from expo_notifications.tasks import check_receipts

7

8 ticket_pks = list(self.values_list("pk", flat=True))

9 check_receipts.delay_on_commit(ticket_pks)

10

11

12 class TicketManager(models.Manager):

13 def get_queryset(self) -> TicketQueryset:

14 return TicketQueryset(self.model, using=self._db)