Skip to content

Commit

Permalink
Use timezone aware default value in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmuellegger committed Jul 22, 2014
1 parent ec9acaf commit 94c7331
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autofixture_tests/models.py
Expand Up @@ -5,13 +5,14 @@
from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
from django.utils.timezone import utc


filepath = os.path.dirname(os.path.abspath(__file__))


def y2k():
return datetime(2000, 1, 1)
return datetime(2000, 1, 1).replace(tzinfo=utc)


class SimpleModel(models.Model):
Expand Down

0 comments on commit 94c7331

Please sign in to comment.