Tuesday, February 23, 2021

Re: Help needed

Such as others have said, you should remove ```auto_now=True```, after that, you cant  forget to run ```makemigrantions``` and ```migrate```

Em terça-feira, 23 de fevereiro de 2021 às 03:04:24 UTC-3, bhurk...@gmail.com escreveu:
Hello everyone,

I am trying to select the custom date but datetime=models.DateTimeField(auto_now=True)
is only taking current date ....
Please help me 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a7e3f5bd-e65a-4f06-9d82-0183929376can%40googlegroups.com.

No comments:

Post a Comment