from django.shortcuts import render_to_response
from django.shortcuts import get_object_or_404
+from django.template import RequestContext
from django.utils.translation import ugettext as _
from django.contrib.auth.models import User
from ee.influences.models import Character
if f:
f.fields['character']._set_queryset(chars)
- return render_to_response('influences/add.html', {'message' : message, 'form' : f})
+ return render_to_response('influences/add.html', {'message' : message, 'form' : f}, RequestContext(request))
def addCharacter(request):
message = None
def index(request):
characters = request.user.character_set.all()
influences = Influence.objects.filter(character__in=characters)
- return render_to_response('influences/index.html', {'characters' : characters, 'influences' : influences})
+ return render_to_response('influences/index.html', {'characters' : characters, 'influences' : influences}, RequestContext(request))