dj111
eric 2020-03-05 21:13:08 -05:00
parent c58e5bfece
commit 516adde842
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ register = django.template.Library()
@register.simple_tag(takes_context=True)
def render_with_landing(context, text):
if not 'landing_object' in context.has_key and 'runinfo' in context:
if not 'landing_object' in context and 'runinfo' in context:
landing = context['runinfo'].landing
context['landing_object'] = landing.content_object if landing else ''
if text: