0

models.py

class sample(models.Model)
   a = models.DateTimeField(blank=true, default=true)

POSTGRES sample Table

a column datetype is a timestamp without timezone

I need to change 'a' column datetype timestamp without timezone to timestamp with timezone using Django model. how to achieve this scenario.

hari prasanth
  • 716
  • 1
  • 15
  • 35

0 Answers0