Is it possible to allow manual editing of auto DateTimeField’s on the add / change page of a model. The fields are defined as:
post_date = models.DateTimeField(auto_now_add=True)
post_updated = models.DateTimeField(auto_now=True)
I’m not sure how manually overriding these would exactly work, is the auto updating handled at the database level or in django itself?
auto_now_add=Trueandauto_now=Trueassumeeditable=False. So if you need to correct this field, don’t use them.Auto updating handles at django level. For example, if you update queryset, e.g.
won’t update
post_updatedfield. Butwill do