def sort(request):
    sortid = request.GET.get('sortid')
ratings = Bewertung.objects.order_by(sortid)
locations = Location.objects.filter(locations_bewertung__in=ratings)
if request.is_ajax():
    template = 'partial-results.html'
else:
    pass
how to render only part of html with data using django