Explicitly store whether checkins were offline (#2617)

This commit is contained in:
Raphael Michel
2022-05-17 14:32:14 +02:00
committed by GitHub
parent 074252a9c0
commit 08590f9d98
7 changed files with 38 additions and 3 deletions

View File

@@ -326,7 +326,13 @@ class Checkin(models.Model):
type = models.CharField(max_length=100, choices=CHECKIN_TYPES, default=TYPE_ENTRY)
nonce = models.CharField(max_length=190, null=True, blank=True)
# Whether or not the scan was made offline
force_sent = models.BooleanField(default=False, null=True, blank=True)
# Whether the scan was made offline AND would have not been possible online
forced = models.BooleanField(default=False)
device = models.ForeignKey(
'pretixbase.Device', related_name='checkins', on_delete=models.PROTECT, null=True, blank=True
)