Add notification on ticket messages
This commit is contained in:
parent
aa43b26683
commit
7065d9ce6b
8 changed files with 90 additions and 10 deletions
|
@ -19,8 +19,8 @@ class NotificationList(ListView):
|
|||
|
||||
query = {
|
||||
'owner': self.request.profile,
|
||||
'comment__hidden': False,
|
||||
}
|
||||
|
||||
self.queryset = Notification.objects.filter(**query)\
|
||||
.order_by('-time')[:100] \
|
||||
.annotate(seen=Value(True, output_field=BooleanField()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue