@require_GET
def more_tweets(request):
 max_id = request.GET.get('max_id')
 raw_filter = request.GET.get('filter')
 filter = (raw_filter if (raw_filter in FILTERS) else 'recent')
 return render(request, 'customercare/tweets.html', {'tweets': _get_tweets(locale=request.LANGUAGE_CODE, max_id=max_id, filter=filter, https=request.is_secure())})

@ require_GET def more_tweets ( request ) : max_id = request . GET . get ( 'max_id' ) raw_filter = request . GET . get ( 'filter' ) filter = ( raw_filter if ( raw_filter in FILTERS ) else 'recent' ) return render ( request , 'customercare/tweets.html' , { 'tweets' : _get_tweets ( locale = request . LANGUAGE_CODE , max_id = max_id , filter = filter , https = request . is_secure ( ) ) } )
ajax view returning a list of tweets .