jamessewell/django-timescaledb

Add auto_now_add for time field?

Opened this issue · 1 comments

Appreciate if there was a parameter that would set time=NOW() automatically on INSERT

You can do this with the following line when declaring you model:

time = TimescaleDateTimeField(auto_now_add=True, interval="1 day")