Jeremy Stretch 3 år sedan
förälder
incheckning
86c35a403a
2 ändrade filer med 6 tillägg och 1 borttagningar
  1. 4 1
      docs/configuration/optional-settings.md
  2. 2 0
      docs/release-notes/version-3.2.md

+ 4 - 1
docs/configuration/optional-settings.md

@@ -259,9 +259,12 @@ HTTP_PROXIES = {
 
 Default: `{}`
 
-A dictionary of custom jinja2 filters with the key being the filter name and the value being a callable. For more information see the [jinja2 documentation](https://jinja.palletsprojects.com/en/3.1.x/api/#custom-filters). For example:
+A dictionary of custom jinja2 filters with the key being the filter name and the value being a callable. For more information see the [Jinja2 documentation](https://jinja.palletsprojects.com/en/3.1.x/api/#custom-filters). For example:
 
 ```python
+def uppercase(x):
+    return str(x).upper()
+
 JINJA2_FILTERS = {
     'uppercase': uppercase,
 }

+ 2 - 0
docs/release-notes/version-3.2.md

@@ -6,6 +6,7 @@
 
 * [#8882](https://github.com/netbox-community/netbox/issues/8882) - Support filtering IP addresses by multiple parent prefixes
 * [#8893](https://github.com/netbox-community/netbox/issues/8893) - Include count of IP ranges under tenant view
+* [#9501](https://github.com/netbox-community/netbox/issues/9501) - Add support for custom Jinja2 filters
 
 ### Bug Fixes
 
@@ -13,6 +14,7 @@
 * [#9484](https://github.com/netbox-community/netbox/issues/9484) - Include services listening on "all IPs" under IP address view
 * [#9486](https://github.com/netbox-community/netbox/issues/9486) - Fix redirect URL when adding device components from the module view
 * [#9495](https://github.com/netbox-community/netbox/issues/9495) - Correct link to contacts in contact groups table column
+* [#9512](https://github.com/netbox-community/netbox/issues/9512) - Fix duplicate site results when searching by ASN
 
 ---