The code below fetches the month number correctly, but I want to retrieve the month name and not the number. I've tried using Django date filters in the template, as well as Calendar utils in views.py but that doesn't seem to work
views.py
def ticket(request, month, year):
airline = Airline.objects.get(id=request.user.airline_id)
for ts in Timestamp.objects.filter(
airline=airline,
usage_on__year=year,
usage_on__month=month
):
pass
return TemplateResponse(request, 'club/al_history.html', {
'usage_month': month,
'usage_year': year,
'timestamp': timestamp,
})
al.html
{% extends 'base.html' %}
{% block content %}
<h3>{{ usage_month }}, {{usage_year}}</h3>
{% endblock %}