django/tests/modeltests/timezones/models.py

9 lines
225 B
Python
Raw Normal View History

from django.db import models
class Event(models.Model):
dt = models.DateTimeField()
class Timestamp(models.Model):
created = models.DateTimeField(auto_now_add=True)
updated = models.DateTimeField(auto_now=True)