Closes #3281: Hide custom links which render as empty text

This commit is contained in:
Jeremy Stretch
2019-06-24 12:20:09 -04:00
parent 251ba08e09
commit 5de242fe53
3 changed files with 31 additions and 17 deletions

View File

@@ -87,7 +87,8 @@ class CustomLinkForm(forms.ModelForm):
model = CustomLink
exclude = []
help_texts = {
'text': 'Jinja2 template code for the link text. Reference the object as <code>{{ obj }}</code>.',
'text': 'Jinja2 template code for the link text. Reference the object as <code>{{ obj }}</code>. Links '
'which render as empty text will not be displayed.',
'url': 'Jinja2 template code for the link URL. Reference the object as <code>{{ obj }}</code>.',
}