Fixed bug in django template for ajax results.