Fix: Auto-cleanup temp files after photo processing

- Added temp file deletion in Celery task after successful processing
- Added temp file cleanup in sync fallback method
- Added temp file removal in delete() if processing never completed
- Prevents accumulation of orphaned files in media/<entity>/temp/ folders
This commit is contained in:
2025-11-15 22:28:41 +03:00
parent 53fbb6d3c1
commit 9363527e50
9 changed files with 275 additions and 18 deletions

View File

@@ -88,13 +88,14 @@
<!-- Фильтр по статусу -->
{% if show_status|default:True %}
<div class="col-12 col-md-2">
<label for="is_active" class="form-label">
<label for="status" class="form-label">
<i class="bi bi-toggle-on"></i> Статус
</label>
<select class="form-select" id="is_active" name="is_active">
<select class="form-select" id="status" name="status">
<option value="">Все</option>
<option value="1" {% if filters.current.is_active == '1' %}selected{% endif %}>Активные</option>
<option value="0" {% if filters.current.is_active == '0' %}selected{% endif %}>Неактивные</option>
<option value="active" {% if filters.current.status == 'active' %}selected{% endif %}>Активный</option>
<option value="archived" {% if filters.current.status == 'archived' %}selected{% endif %}>Архивный</option>
<option value="discontinued" {% if filters.current.status == 'discontinued' %}selected{% endif %}>Снят</option>
</select>
</div>
{% endif %}