Closed jdavid closed 9 years ago
Worse, the query is just the opposite, instead of deleting expired uploads, it deletes non expired uploads:
- qs = qs.filter(created_on__gte=(timezone.now() - EXPIRATION_DELTA))
+ qs = qs.filter(created_on__lt=(timezone.now() - EXPIRATION_DELTA))
You're totally right about those two things! I'm so sorry. I'm going to fix them right away and make a new release.
Fixed here: d99f9d7.
New version (1.0.4
) in PyPI.
Thanks @jdavid for pointing this out!
Hello,
Import Error:
Guess it should be
from chunked_upload.settings import EXPIRATION_DELTA
PS: Thanks for this product!