kopia lustrzana https://github.com/wagtail/wagtail
Update admin_views.md
typo method from `format_month(current_year, current_month)` to `formatmonth(current_year, current_month)`pull/9064/head
rodzic
4a9916721a
commit
4a6e744d34
|
@ -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)
|
||||
```
|
||||
|
|
Ładowanie…
Reference in New Issue