Commits

Diego Búrigo Zacarão committed a4f5d7b

Fixed CSRF issue with login from homepage

  • Participants
  • Parent commits 4a9df20

Comments (0)

Files changed (1)

File transifex/txcommon/views.py

 from django.template import RequestContext
 from django.utils import simplejson
 from django.utils.translation import ugettext as _
+from django.views.decorators.csrf import csrf_protect
 from django.views.generic import list_detail
 
 from notification import models as notification
          'results': results}, 
           context_instance = RequestContext(request))
 
+@csrf_protect
 def index(request):
     num_projects = Project.objects.count()
     num_languages = Language.objects.count()