We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2dcb33d + 961fb67 commit 9f58e2aCopy full SHA for 9f58e2a
django_yubin/models.py
@@ -267,7 +267,7 @@ def delete_old(cls, days=90):
267
Returns the deletion data from Django and the cuttoff date.
268
"""
269
cutoff_date = now() - datetime.timedelta(days)
270
- deleted = cls.objects.filter(date_created__lt=cutoff_date).delete()
+ deleted = cls.objects.defer("_message_data").filter(date_created__lt=cutoff_date).delete()
271
return deleted, cutoff_date
272
273
0 commit comments