check date spectacle
This commit is contained in:
parent
a29c73cb27
commit
76a88be4ef
1 changed files with 6 additions and 5 deletions
|
@ -331,6 +331,7 @@ def revente(request, tirage_id):
|
||||||
id=revente_id)
|
id=revente_id)
|
||||||
if rev.exists():
|
if rev.exists():
|
||||||
revente = rev.get()
|
revente = rev.get()
|
||||||
|
if revente.attribution.spectacle.date > timezone.now():
|
||||||
revente.date = timezone.now() - timedelta(hours=1)
|
revente.date = timezone.now() - timedelta(hours=1)
|
||||||
revente.soldTo = None
|
revente.soldTo = None
|
||||||
if revente.answered_mail:
|
if revente.answered_mail:
|
||||||
|
|
Loading…
Reference in a new issue