|
|
@ -31,7 +31,7 @@ class Shift(models.Model):
|
|
|
|
|
|
|
|
|
|
|
|
class Helper(models.Model):
|
|
|
|
class Helper(models.Model):
|
|
|
|
# todo: add propper phone number validation, maybe even country code?
|
|
|
|
# todo: add propper phone number validation, maybe even country code?
|
|
|
|
phone = models.CharField(max_length=200, primary_key=True)
|
|
|
|
phone = models.CharField(max_length=200, primary_key=True, editable=False)
|
|
|
|
name = models.CharField(max_length=200)
|
|
|
|
name = models.CharField(max_length=200)
|
|
|
|
# change this to a generic state variable to allow for number blocking/account deactivation?
|
|
|
|
# change this to a generic state variable to allow for number blocking/account deactivation?
|
|
|
|
number_validated = models.BooleanField(default=False)
|
|
|
|
number_validated = models.BooleanField(default=False)
|
|
|
@ -86,6 +86,9 @@ class ShiftRegistration(models.Model):
|
|
|
|
shift__start_at__lte=timezone.now() + timedelta(minutes=60),
|
|
|
|
shift__start_at__lte=timezone.now() + timedelta(minutes=60),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
|
|
|
|
return f"{self.helper.name}: {self.shift}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Message(models.Model):
|
|
|
|
class Message(models.Model):
|
|
|
|
# remove limit and send long messages in multiple messages?
|
|
|
|
# remove limit and send long messages in multiple messages?
|
|
|
|