django – Can't display DateTime fields

Question:

Model available

class BotUser(models.Model):
    date_in = models.DateTimeField(auto_now_add=False, auto_now=False, null=True, blank=True)
    date = models.DateField(auto_now=False, null=True, blank=True)

Previously, there was the value auto_now=True and auto_now_add=True Now I needed to display them in the admin panel for manual configuration, I decided to change the values ​​to False. But they still do not appear, what to do?

Answer:

Try removing auto_now = False :

class BotUser(models.Model):
    date_in = models.DateTimeField(auto_now_add=False, auto_now=False, null=True, blank=True)
    date = models.DateField(null=True, blank=True)
Scroll to Top