Skip to content

Commit 4efcab0

Browse files
authored
Merge pull request #381 from markkuleinio/master
Add NetBox version information in App.custom_choices() docstring
2 parents ace1061 + 458088c commit 4efcab0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pynetbox/core/app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ def choices(self):
9595
def custom_choices(self):
9696
""" Returns _custom_field_choices response from app
9797
98+
.. note::
99+
100+
This method only works with NetBox version 2.9.x or older. NetBox
101+
2.10.0 introduced the ``/extras/custom-fields/`` endpoint that can
102+
be used f.ex. like ``nb.extras.custom_fields.all()``.
103+
98104
:Returns: Raw response from NetBox's _custom_field_choices endpoint.
99105
:Raises: :py:class:`.RequestError` if called for an invalid endpoint.
100106
:Example:

0 commit comments

Comments
 (0)