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