Database returned an invalid value in QuerySet.dates() Database returned an invalid value in QuerySet.dates() mysql mysql