1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

Add timestamp to user_notification

This commit is contained in:
xiez
2012-07-04 14:25:25 +08:00
parent 62c8aba292
commit bef3039a75
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
import datetime
from django.db import models
from django.forms import ModelForm, Textarea
@@ -9,6 +10,7 @@ class UserNotification(models.Model):
to_user = models.EmailField(db_index=True, max_length=255)
msg_type = models.CharField(db_index=True, max_length=30)
detail = models.TextField()
timestamp = models.DateTimeField(default=datetime.datetime.now)
class NotificationForm(ModelForm):
"""