Technology · Culture · Change
Sign inJoin us
TechTrends NowFollow the next shiftTechnology · Culture · Change
← Latest news

From Dev.to

Django: Use auto_now and auto_now_add Correctly — When to Switch to default=timezone.now

Most Django models have two timestamp fields: created_at to know when a record was created and updated_at for the last edit. The quickest way is auto_now_add=True for created_at and auto_now=True for...

Read the full report at Dev.to ↗