Commit 9d56c5a2 by Ed Crewe

fix signals call

parent c14be685
...@@ -64,8 +64,8 @@ def delete_old_tickets(**kwargs): ...@@ -64,8 +64,8 @@ def delete_old_tickets(**kwargs):
""" """
sender = kwargs.get('sender', None) sender = kwargs.get('sender', None)
now = datetime.now() now = datetime.now()
expire = datetime(now.year, now.month, now.day - 3) expire = datetime(now.year, now.month, now.day - 2)
sender.objects.filter(created__lt=expire).delete() sender.objects.filter(created__lt=expire).delete()
post_save.connect(delete_old_tickets, sender=pgtIOU) post_save.connect(delete_old_tickets, sender=PgtIOU)
post_save.connect(delete_old_tickets, sender=Tgt) post_save.connect(delete_old_tickets, sender=Tgt)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment