add: add new field for list api
This commit is contained in:
@@ -14,7 +14,7 @@ class CashTransactionListApiView(generics.ListAPIView):
|
||||
permission_classes = [HasRolePermission]
|
||||
required_permissions = []
|
||||
serializer_class = serializers.CashTransactionListSerializer
|
||||
queryset = CashTransaction.objects.prefetch_related('employees', 'payment_type')
|
||||
queryset = CashTransaction.objects.prefetch_related('employees', 'payment_type', 'projects')
|
||||
pagination_class = CustomPageNumberPagination
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user