def extend_lifespan(self, commit=True):
    self.last_extended = timezone.now()
    self.expiry_notified = False
    if commit:
        self.save()
def extend_lifespan(self, commit=True):
    self.last_extended = timezone.now()
    self.expiry_notified = False
    if commit:
        self.save()