1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 00:20:07 +00:00

Add user notification

This commit is contained in:
xiez
2012-06-25 21:40:18 +08:00
parent 83c0242d78
commit 9717f9a7ec
5 changed files with 52 additions and 6 deletions

View File

@@ -5,6 +5,11 @@ class Notification(models.Model):
message = models.CharField(max_length=512)
primary = models.BooleanField(default=False)
class UserNotification(models.Model):
email = models.EmailField(max_length=255)
note_type = models.CharField(max_length=30)
detail = models.CharField(max_length=100)
class NotificationForm(ModelForm):
"""
Form for adding notification.