[Django]-Saving datetimefiled in django models, int() argument must be a string or a number

2👍

Try this:

created = models.DateTimeField(auto_now_add=True)

There is also auto_now for an ‘updated on’ field.

Leave a comment