mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Add support for form fieldsets
This commit is contained in:
@ -4,6 +4,14 @@ from django import template
|
||||
register = template.Library()
|
||||
|
||||
|
||||
@register.filter()
|
||||
def getfield(form, fieldname):
|
||||
"""
|
||||
Return the specified field of a Form.
|
||||
"""
|
||||
return form[fieldname]
|
||||
|
||||
|
||||
@register.inclusion_tag('utilities/render_field.html')
|
||||
def render_field(field, bulk_nullable=False):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user