def archive(self, unarchive=False, commit=True):
    if unarchive:
        self.extend_lifespan(commit=False)
        self.is_archived = False
    else:
        self.is_archived = True
    if commit:
        self.save()
def archive(self, unarchive=False, commit=True):
    if unarchive:
        self.extend_lifespan(commit=False)
        self.is_archived = False
    else:
        self.is_archived = True
    if commit:
        self.save()