Skip to content

Commit

Permalink
Merge pull request #381 from markkuleinio/master
Browse files Browse the repository at this point in the history
Add NetBox version information in App.custom_choices() docstring
  • Loading branch information
zachmoody committed Jun 6, 2021
2 parents ace1061 + 458088c commit 4efcab0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pynetbox/core/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ def choices(self):
def custom_choices(self):
""" Returns _custom_field_choices response from app
.. note::
This method only works with NetBox version 2.9.x or older. NetBox
2.10.0 introduced the ``/extras/custom-fields/`` endpoint that can
be used f.ex. like ``nb.extras.custom_fields.all()``.
:Returns: Raw response from NetBox's _custom_field_choices endpoint.
:Raises: :py:class:`.RequestError` if called for an invalid endpoint.
:Example:
Expand Down

0 comments on commit 4efcab0

Please sign in to comment.