mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 00:00:00 +00:00
Update notifications.py
This commit is contained in:
@@ -410,12 +410,6 @@ class AllNotificationsView(APIView):
|
||||
"""
|
||||
|
||||
username = request.user.username
|
||||
# unseen_notices = UserNotification.objects.get_user_notifications(username,
|
||||
# seen=False)
|
||||
# for notice in unseen_notices:
|
||||
# notice.seen = True
|
||||
# notice.save()
|
||||
|
||||
try:
|
||||
UserNotification.objects.get_user_notifications(username, seen=False).update(seen=True)
|
||||
SeadocNotification.objects.filter(username=username, seen=False).update(seen=True)
|
||||
|
Reference in New Issue
Block a user