diff --git a/pinaxcon/templatetags/lca2019_tags.py b/pinaxcon/templatetags/lca2019_tags.py index 04993cbc..16779496 100644 --- a/pinaxcon/templatetags/lca2019_tags.py +++ b/pinaxcon/templatetags/lca2019_tags.py @@ -23,10 +23,12 @@ def has_price_fields(form): if isinstance(field, Form): return has_price_fields(field) - if '$' in field.field.help_text: + help_text = field.field.help_text or '' + if '$' in help_text: return True - if '$' in field.field.label: + label = field.field.label or '' + if '$' in label: return True choices = getattr(field.field, 'choices', [])