import device in notification structure
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user