feat: Fully replace the Adoption Notice Status model with the field

This commit is contained in:
2025-08-31 10:52:48 +02:00
parent 70f077e393
commit fd481fef2e
16 changed files with 102 additions and 219 deletions

View File

@@ -73,9 +73,9 @@ class AdoptionNoticeApiView(APIView):
# Only set active when user has trust level moderator or higher
if request.user_to_notify.trust_level >= TrustLevel.MODERATOR:
adoption_notice.set_active()
adoption_notice.adoption_notice_status = AdoptionNoticeStatusChoices.Active.SEARCHING
else:
adoption_notice.set_unchecked()
adoption_notice.adoption_notice_status = AdoptionNoticeStatusChoices.AwaitingAction.WAITING_FOR_REVIEW
# Log the action
Log.objects.create(