from django.shortcuts import render_to_response
from categories.models import Category

def index(request):
    category_list = Category.tree.all()
    return render_to_response("home.html",
        {'nodes': category_list})

from django.shortcuts import render_to_response
from categories.models import Category

def index(request):
    category_list = Category.tree.all()
    return render_to_response("home.html",
        {'nodes': category_list, 'request': request})

Add request to return value.
Add request to return value.

  from django.shortcuts import render_to_response
  from categories.models import Category
  
  def index(request):
      category_list = Category.tree.all()
      return render_to_response("home.html",
-         {'nodes': category_list})
+         {'nodes': category_list, 'request': request})
  
Add request to return value.
## Code Before:
from django.shortcuts import render_to_response
from categories.models import Category

def index(request):
    category_list = Category.tree.all()
    return render_to_response("home.html",
        {'nodes': category_list})

## Instruction:
Add request to return value.
## Code After:
from django.shortcuts import render_to_response
from categories.models import Category

def index(request):
    category_list = Category.tree.all()
    return render_to_response("home.html",
        {'nodes': category_list, 'request': request})
