forked from DGNum/gestioCOF
check date admin
This commit is contained in:
parent
a9a4bf6b4a
commit
929672a2a9
1 changed files with 2 additions and 1 deletions
|
@ -257,7 +257,8 @@ class SpectacleReventeAdmin(admin.ModelAdmin):
|
||||||
Réinitialise les reventes.
|
Réinitialise les reventes.
|
||||||
"""
|
"""
|
||||||
count = queryset.count()
|
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.date = timezone.now() - timedelta(hours=1)
|
||||||
revente.soldTo = None
|
revente.soldTo = None
|
||||||
revente.notif_sent = False
|
revente.notif_sent = False
|
||||||
|
|
Loading…
Reference in a new issue