Commits

Luke Plant  committed a581b11

Updated for removal of LazyDate shortcut

  • Participants
  • Parent commits 2f9ac6c

Comments (0)

Files changed (1)

File django/validator/models.py

 from django.db import models
 from django.contrib.auth.models import User
+import datetime
 
 class ValidationFailure(models.Model):
-    timestamp = models.DateTimeField("Time", default=models.LazyDate())
+    timestamp = models.DateTimeField("Time", default=datetime.datetime.now)
     path = models.TextField("Request path")
     method = models.CharField("HTTP method", maxlength=6)
     request = models.TextField("Request object", default='', blank=True)