I have a object in a model
date_created = models.DateTimeField(auto_now=True)
Now this saves the current date and time when the entry has been entered into the database, as well as changes the time when the entry has been edited.
Is there any way such that the date and time is changed only when its first entered into the database and not when its edited?
Use
auto_now_addrather thanauto_add.auto_now_addis used to:Whereas
auto_nowis to: