Commits

Dmitri Lebedev committed 490214a

updated partial tag

  • Participants
  • Parent commits 5960305

Comments (0)

Files changed (1)

File example/django_partial_page/templatetags/partial_tags.py

 	if len(_thread_locals.partial['data']) == 0:
 		return ''
 
-	return mark_safe('<script>require(["partial"], function (p) {{ p.send_data_event({0}); }})</script>'.format(json.dumps(_thread_locals.partial['data'])))
+	return mark_safe('<script>require(["partial"], function (p) {{ p.set_data({0}); }})</script>'.format(json.dumps(_thread_locals.partial['data'])))
 
 
 class DelayedBlockNode(BlockNode):