from django.http import HttpResponse
from django.shortcuts import render_to_response
from store.models import FandomHierarchy, Image
from store.itemfilters import ApplyPredicates

def frontpage(request):
	tree = FandomHierarchy.objects.filter(parent_id=None).get_root()
	return render_to_response('index.html', {'filter': None, 'tree': tree})

def filtered(request, filter):
	tree = FandomHierarchy.objects.filter(parent_id=None).get_root()
	items = Image.objects.all()
	if filter:
		items = ApplyPredicates(filter, items)
	return render_to_response('index.html', {'filter': filter, 'tree': tree, 'items': items})

@@ -234,35 +234,32 @@
 ts.filter(parent
-_id
 =None).get_root(
@@ -414,11 +414,8 @@
 rent
-_id
 =Non

Use the right field name?