mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 19:36:26 -06:00
Fix docs typo
This commit is contained in:
parent
41deeb4dc9
commit
06d4421e41
@ -60,9 +60,10 @@ class MyModelViewSet(...):
|
|||||||
### TagFilter
|
### TagFilter
|
||||||
|
|
||||||
The `TagFilter` class is available for all models which support tag assignment (those which inherit from `NetBoxModel` or `TagsMixin`). This filter subclasses django-filter's `ModelMultipleChoiceFilter` to work with NetBox's `TaggedItem` class.
|
The `TagFilter` class is available for all models which support tag assignment (those which inherit from `NetBoxModel` or `TagsMixin`). This filter subclasses django-filter's `ModelMultipleChoiceFilter` to work with NetBox's `TaggedItem` class.
|
||||||
|
|
||||||
This class filters `tags` using the `slug` field. For example:
|
This class filters `tags` using the `slug` field. For example:
|
||||||
|
|
||||||
`GET /api/dcim/sites/?tag=alpha&tag_id=bravo`
|
`GET /api/dcim/sites/?tag=alpha&tag=bravo`
|
||||||
|
|
||||||
|
|
||||||
```python
|
```python
|
||||||
@ -76,6 +77,7 @@ class MyModelFilterSet(FilterSet):
|
|||||||
### TagIDFilter
|
### TagIDFilter
|
||||||
|
|
||||||
The `TagIDFilter` class is available for all models which support tag assignment (those which inherit from `NetBoxModel` or `TagsMixin`). This filter subclasses django-filter's `ModelMultipleChoiceFilter` to work with NetBox's `TaggedItem` class.
|
The `TagIDFilter` class is available for all models which support tag assignment (those which inherit from `NetBoxModel` or `TagsMixin`). This filter subclasses django-filter's `ModelMultipleChoiceFilter` to work with NetBox's `TaggedItem` class.
|
||||||
|
|
||||||
This class filters `tags` using the `id` field. For example:
|
This class filters `tags` using the `id` field. For example:
|
||||||
|
|
||||||
`GET /api/dcim/sites/?tag_id=100&tag_id=200`
|
`GET /api/dcim/sites/?tag_id=100&tag_id=200`
|
||||||
|
Loading…
Reference in New Issue
Block a user