log login error
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user