import device in notification structure

This commit is contained in:
2025-10-07 09:37:40 +03:30
parent 7f9001069b
commit f93e48c495
5 changed files with 54 additions and 16 deletions

View File

@@ -20,7 +20,10 @@ class NotificationViewSet(SoftDeleteMixin, POSDeviceMixin, DynamicSearchMixin, v
""" show all notification of device """
organization = self.get_device_organization()
device = self.get_pos_device()
queryset = self.queryset.filter(
device=device,
organization=organization,
delivered=False,
is_read=False