1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Apply suggestions from code review

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
Daniel Sheppard
2024-03-21 22:18:34 -05:00
committed by GitHub
parent 25a4e9448c
commit f257f4aad4
4 changed files with 10 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ from utilities.forms.rendering import FieldSet, InlineFields, ObjectAttribute, T
__all__ = (
'getfield',
'getfilterfield',
'get_filter_field',
'render_custom_fields',
'render_errors',
'render_field',
@@ -35,7 +35,7 @@ def getfield(form, fieldname):
@register.filter()
def getfilterfield(form, fieldname):
def get_filter_field(form, fieldname):
field = getfield(form, f'{fieldname}')
if field is not None:
return field