I have two fields from
and to
.
In my application (django 1.11.2), sometimes I do not need an hour, I just need the date itself. But validation does not allow me to save the object and asks for hour. Is it possible to somehow separate it or does the date and time always have to be given in the DateTimeField
field?
from = models.DateTimeField(blank=True, null=True)
to = models.DateTimeField(blank=True, null=True)