Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

0.8.1

switched to use timezone.now
  • Loading branch information...
commit 6f68209f74be8d2b7c736bf204d3922c26390984 1 parent b3857c0
@paltman paltman authored
Showing with 10 additions and 5 deletions.
  1. +1 −1  anafero/__init__.py
  2. +3 −4 anafero/models.py
  3. +6 −0 docs/changelog.rst
View
2  anafero/__init__.py
@@ -1 +1 @@
-__version__ = "0.8"
+__version__ = "0.8.1"
View
7 anafero/models.py
@@ -1,7 +1,6 @@
-import datetime
-
from django.db import models
from django.core.urlresolvers import reverse
+from django.utils import timezone
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
@@ -24,7 +23,7 @@ class Referral(models.Model):
fk_field="target_object_id"
)
- created_at = models.DateTimeField(default=datetime.datetime.now)
+ created_at = models.DateTimeField(default=timezone.now)
def __unicode__(self):
if self.user:
@@ -128,4 +127,4 @@ class ReferralResponse(models.Model):
ip_address = models.CharField(max_length=45)
action = models.CharField(max_length=128)
- created_at = models.DateTimeField(default=datetime.datetime.now)
+ created_at = models.DateTimeField(default=timezone.now)
View
6 docs/changelog.rst
@@ -3,6 +3,12 @@
ChangeLog
=========
+0.8.1
+-----
+
+- ENHANCEMENT: switched over to use `django.utils.timezone.now` instead of `datetime.datetime.now`
+
+
0.8
---
Please sign in to comment.
Something went wrong with that request. Please try again.