From 253a401e9bc1a6f8df2b3eeeec6a7b4e5922ea41 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 10 Aug 2010 23:59:20 +0200 Subject: [PATCH] defaults --- pandora/oxuser/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/oxuser/models.py b/pandora/oxuser/models.py index 8943fbf99..c76af92ea 100644 --- a/pandora/oxuser/models.py +++ b/pandora/oxuser/models.py @@ -6,13 +6,14 @@ from django.db import models from django.db.models import signals from django.dispatch import dispatcher from django.utils import simplejson as json +from datetime import datetime class UserProfile(models.Model): recover_key = models.TextField() user = models.ForeignKey(User, unique=True) - files_updated = models.DateTimeField(default=None) + files_updated = models.DateTimeField(default=datetime.now) def user_post_save(sender, instance, **kwargs): profile, new = UserProfile.objects.get_or_create(user=instance)