I'm struggling with one case - I would like to have a field in my data time field model but without seconds etc. just YYYY-MM-DD HH:MM
.
I've been trying to do like this, but it doesn't work:
schedule_time = models.DateTimeField(format(['%Y-%m-%d %H:%M']), auto_now_add=True)
Could someone provide me a solution on any example?
I've also been looking for solutions there, but I haven't found anything that would help me.