refactor: Adjust status changes

This commit is contained in:
2024-10-30 11:17:57 +01:00
parent 64024be833
commit d59cc0034a
3 changed files with 7 additions and 21 deletions

View File

@@ -62,4 +62,4 @@ def get_unchecked_adoption_notices(weeks=3):
def deactivate_unchecked_adoption_notices():
for adoption_notice in get_unchecked_adoption_notices(weeks=3):
AdoptionNoticeStatus.objects.get(adoption_notice=adoption_notice).deactivate_unchecked()
AdoptionNoticeStatus.objects.get(adoption_notice=adoption_notice).set_unchecked()