2
0
Эх сурвалжийг харах

Update admin_views.md

typo method from `format_month(current_year, current_month)` to `formatmonth(current_year, current_month)`
ariadi 2 жил өмнө
parent
commit
4a6e744d34

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