Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update the use of now()

  • Loading branch information...
commit aa07f5afe1b976e6b7f503056387e184ec0b64c3 1 parent 4c6111c
@paltman paltman authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 phileo/models.py
View
5 phileo/models.py
@@ -1,6 +1,5 @@
-import datetime
-
from django.db import models
+from django.utils import timezone
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
@@ -18,7 +17,7 @@ class Like(models.Model):
fk_field="receiver_object_id"
)
- timestamp = models.DateTimeField(default=datetime.datetime.now)
+ timestamp = models.DateTimeField(default=timezone.now)
class Meta:
unique_together = (
Please sign in to comment.
Something went wrong with that request. Please try again.