https://mefiz.com/ # For Developer
# Django merge duplicate rows
from django.db.models import Sum
YourModel.objects.values('name', 'user_id').annotate(total=Sum('amount')).values('name', 'user_id', 'total')
https://mefiz.com/ # For Developer
from itertools import chain
result_list = list(chain(page_list, article_list, post_list))