Update admin_views.md

typo method from `format_month(current_year, current_month)` to `formatmonth(current_year, current_month)`
pull/9064/head
ariadi 2022-08-22 09:37:38 +07:00 zatwierdzone przez LB (Ben Johnston)
rodzic 4a9916721a
commit 4a6e744d34
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -159,7 +159,7 @@ def index(request):
def month(request):
current_year = timezone.now().year
current_month = timezone.now().month
calendar_html = calendar.HTMLCalendar().format_month(current_year, current_month)
calendar_html = calendar.HTMLCalendar().formatmonth(current_year, current_month)
return HttpResponse(calendar_html)
```