log login error

This commit is contained in:
2025-09-14 10:49:55 +03:30
parent 9678bf2c21
commit 01858c9281
8 changed files with 162 additions and 98 deletions

View File

@@ -72,7 +72,7 @@ class InventoryEntryViewSet(viewsets.ModelViewSet, DynamicSearchMixin, POSDevice
]
# paginate & response
page = self.paginate_queryset(available_entries)
page = self.paginate_queryset(available_entries) # noqa
if page is not None:
serializer = self.get_serializer(page, many=True, context={'rancher': rancher.first(), 'device': device})
# set custom message for paginator

View File

@@ -165,8 +165,6 @@ class InventoryQuotaSaleTransactionSerializer(serializers.ModelSerializer):
representation['pos_device'] = DeviceSerializer(instance.pos_device).data
if instance.seller_organization:
representation['seller_organization'] = instance.seller_organization.name
if instance.inventory_entry:
representation['inventory_entry'] = InventoryEntrySerializer(instance.inventory_entry).data
return representation