Skip to content

Commit

Permalink
Merge pull request #68 from mlebreuil/63-api-issue-with-invoices
Browse files Browse the repository at this point in the history
Correct an API issue with the Invoice model
  • Loading branch information
mlebreuil authored Jun 18, 2023
2 parents 70ff264 + 8694529 commit 31176fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

2 changes: 1 addition & 1 deletion src/netbox_contract/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31176fc

Please sign in to comment.