Skip to content

Instantly share code, notes, and snippets.

@brunomichetti
Created September 13, 2022 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunomichetti/b943aac74e0163494c0af9df1903f0a6 to your computer and use it in GitHub Desktop.
Save brunomichetti/b943aac74e0163494c0af9df1903f0a6 to your computer and use it in GitHub Desktop.
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