Answer the question
In order to leave comments, you need to log in
How to use date data type in django in postgresql?
In django model i have two fields with type DateField()
class Event(Model):
EventName = models.CharField(max_length=50)
PublicationDate = models.DateField()
EventDate = models.DateField()
django.db.utils.ProgrammingError: cannot cast type integer to date
LINE 1: ..." ALTER COLUMN "EventDate" TYPE date USING "EventDate"::date
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question