#14036: Update import paths in example plugin code

This commit is contained in:
Jeremy Stretch
2023-12-29 09:21:06 -05:00
parent 33af942571
commit c1ff74894c
3 changed files with 5 additions and 5 deletions

View File

@@ -206,7 +206,7 @@ For example, accessing `{{ request.user }}` within a template will return the cu
Declared subclasses should be gathered into a list or tuple for integration with NetBox. By default, NetBox looks for an iterable named `template_extensions` within a `template_content.py` file. (This can be overridden by setting `template_extensions` to a custom value on the plugin's PluginConfig.) An example is below.
```python
from extras.plugins import PluginTemplateExtension
from netbox.plugins import PluginTemplateExtension
from .models import Animal
class SiteAnimalCount(PluginTemplateExtension):