Coverage for src/expo_notifications/models/receipt.py: 100%
8 statements
« prev ^ index » next coverage.py v7.8.0, created at 2025-05-10 02:00 +0000
« prev ^ index » next coverage.py v7.8.0, created at 2025-05-10 02:00 +0000
1from django.db import models
4class Receipt(models.Model):
5 ticket = models.ForeignKey(
6 to="expo_notifications.Ticket",
7 on_delete=models.CASCADE,
8 related_name="receipts",
9 )
11 is_success = models.BooleanField()
13 error_message = models.TextField(
14 blank=True,
15 )
17 date_checked = models.DateTimeField()
19 def __str__(self) -> str:
20 return f"Receipt #{self.pk}"