diff --git a/bda/admin.py b/bda/admin.py index 87a269d4..a9b3c51f 100644 --- a/bda/admin.py +++ b/bda/admin.py @@ -257,7 +257,8 @@ class SpectacleReventeAdmin(admin.ModelAdmin): RĂ©initialise les reventes. """ count = queryset.count() - for revente in queryset.all(): + for revente in queryset.filter( + attribution__spectacle__date__gte=timezone.now()): revente.date = timezone.now() - timedelta(hours=1) revente.soldTo = None revente.notif_sent = False