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:
@@ -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):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user