bad fix
parent
c58e5bfece
commit
516adde842
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue