Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from datetime import timedelta
three_days = timedelta(days=3)
Target.objects.all().update(created_at=F("created_at") + three_days)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment