Browse Source

Update admin_views.md

typo method from `format_month(current_year, current_month)` to `formatmonth(current_year, current_month)`
ariadi 2 years ago
parent
commit
4a6e744d34
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/extending/admin_views.md

+ 1 - 1
docs/extending/admin_views.md

@@ -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)
 ```