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

Fixes #3190: Fix custom field rendering for Jinja2 export templates

This commit is contained in:
Jeremy Stretch
2019-05-16 19:45:36 -04:00
parent 62d497dd0b
commit 2f32488c25
4 changed files with 25 additions and 21 deletions

View File

@ -106,6 +106,7 @@ class CustomFieldModel(models.Model):
class Meta:
abstract = True
@property
def cf(self):
"""
Name-based CustomFieldValue accessor for use in templates