How to get Month Name instead of number in queryset?

I have this queryset on my view:
monthly = order_items.annotate(bulan=ExtractMonth(‘order__order_date__month’)).values(‘bulan’).annotate(qty=Sum(‘quantity’))

The query working well.
How to get Month Name instead of number in that queryset?

Thanks in advance.

use CASE in orm django
cf: https://docs.djangoproject.com/fr/3.0/ref/models/conditional-expressions/

enjoy

or use :
Sales.objects.all() .extra(select={‘month’: ‘MONTHNAME(date)’}) .values(‘month’).annotate(total=SUM(‘amount’)) .values(‘month’, ‘total’)

=

[ 
    { 
     "total": 186.0, 
     "month": "July" 
    }, 
    { 
     "total": 278.0, 
     "month": "August" 
    } 
]

Thanks buddy, really appreciate your help.