From 86945293c3f303ad68b91834a4b31cd11640e68e Mon Sep 17 00:00:00 2001 From: Marc Lebreuil Date: Sun, 18 Jun 2023 13:46:26 +0000 Subject: [PATCH] Correct an API issue with the Invoice model Changes to be committed: modified: README.md modified: src/netbox_contract/api/views.py --- README.md | 6 ++++++ src/netbox_contract/api/views.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c820546..79fb0db 100644 --- a/README.md +++ b/README.md @@ -83,3 +83,9 @@ Add support for Netbox 3.5 which become the minimum version supported to accomod * [#60](https://github.com/mlebreuil/netbox-contract/issues/60) Update contract quick search to also filter on fields "External reference" and "Comments". * [#49](https://github.com/mlebreuil/netbox-contract/issues/49) Manage permissions. + +#### version 2.0.4 + +* Add bulk update capability for contract assignement +* [#63](https://github.com/mlebreuil/netbox-contract/issues/63) Correct an API issue on the invoice object. + diff --git a/src/netbox_contract/api/views.py b/src/netbox_contract/api/views.py index 7ac1c56..24de632 100644 --- a/src/netbox_contract/api/views.py +++ b/src/netbox_contract/api/views.py @@ -9,7 +9,7 @@ class ContractViewSet(NetBoxModelViewSet): class InvoiceViewSet(NetBoxModelViewSet): queryset = models.Invoice.objects.prefetch_related( - 'contract', 'tags' + 'contracts', 'tags' ) serializer_class = InvoiceSerializer filterset_class = filtersets.InvoiceFilterSet