Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to murj record in django


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')
 
PREVIOUS NEXT
Tagged: #murj #record #django
ADD COMMENT
Topic
Name
7+7 =