DjangoのModelを作成していて、作成日時/更新日時を自動で入力したい場合がある。 その時は以下のように指定してあげると良い。 from django.db import models class AutoTimestampModel(models.Model): created_at = models.DateTimeField( auto_now_add=True, editable=False, null=True, blank=True) updated_at = models.DateTimeField( auto_now=True, editable=False, null=…