Django admin - Allow manual editing of auto DateTime fields
django, django-admin
Solution
`auto_now_add=True` and `auto_now=True` assume `editable=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.
Article.object.filter(pk=10).update(active=True)
won't update `post_updated` field. But
article = Article.object.get(pk=10)
article.active = True
atricle.save()
will do
Problem
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?