{% extends "kolibri/base.html" %}
{% load learn_tags %}

{% block content %}
  <script>
    {{kolibri}}.resources.ContentNodeResource.setChannel("{{ channel_id }}");
    var root_node = JSON.parse("{{ rootnode|escapejs }}");
    var root_node_pk = String(root_node.pk);
    var model = {{kolibri}}.resources.ContentNodeResource.getModel(root_node_pk, root_node);
    model.synced = true;
    var collection = {{kolibri}}.resources.ContentNodeResource.getCollection({parent: root_node_pk}, JSON.parse("{{ nodes|escapejs }}"));
    collection.synced = true;
  </script>
  {% learn_async_assets %}
  {% learn_assets %}
{% endblock %}

{% extends "kolibri/base.html" %}
{% load learn_tags %}

{% block content %}
  <script>
    {{kolibri}}.resources.ContentNodeResource.setChannel("{{ channel_id }}");
    var root_node = JSON.parse("{{ rootnode|escapejs }}");
    var root_node_pk = String(root_node.pk);
    var model = {{kolibri}}.resources.ContentNodeResource.createModel(root_node);
    model.synced = true;
    var collection = {{kolibri}}.resources.ContentNodeResource.getCollection({parent: root_node_pk}, JSON.parse("{{ nodes|escapejs }}"));
    collection.synced = true;
  </script>
  {% learn_async_assets %}
  {% learn_assets %}
{% endblock %}

Change bootstrapping to use createModel instead of getModel.
Change bootstrapping to use createModel instead of getModel.
