diff --git a/README.md b/README.md index d5c0ff6..ea29b14 100644 --- a/README.md +++ b/README.md @@ -217,11 +217,10 @@ Here's an example `BaseModel`: ```python from django.db import models -from django.utils import timezone class BaseModel(models.Model): - created_at = models.DateTimeField(db_index=True, default=timezone.now) + created_at = models.DateTimeField(db_index=True, auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) class Meta: