many fixes of backeend and fronteend

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-06 16:41:35 +00:00
parent a0eee0df42
commit bfb07947ea
19 changed files with 638 additions and 19 deletions

View File

@@ -0,0 +1,16 @@
import logging
from celery import shared_task
from django.core.management import call_command
logger = logging.getLogger(__name__)
@shared_task(name='igny8_core.purge_soft_deleted')
def purge_soft_deleted_task():
"""Periodic task to purge expired soft-deleted records."""
try:
call_command('purge_soft_deleted')
except Exception as exc:
logger.exception("purge_soft_deleted task failed: %s", exc)
raise