Use ajax request for pulling Reddit comments

This commit is contained in:
2010-10-13 14:12:13 +01:00
parent 9fdc4454a9
commit bf166f958f
2 changed files with 53 additions and 16 deletions

View File

@@ -88,7 +88,7 @@ def view_application(request, applicationid):
else:
return HttpResponseRedirect(reverse('hr.views.index'))
if request.GET.has_key('redditxhr'):
if request.GET.has_key('redditxhr') and request.is_ajax():
posts = []
for acc in app.user.redditaccount_set.all():
try: