瀏覽代碼

Documentation - fix some escaped content that does not need escaping

zobbs 2 年之前
父節點
當前提交
5ea291da1a
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 1 0
      CONTRIBUTORS.rst
  2. 3 3
      docs/extending/adding_reports.md

+ 1 - 0
CONTRIBUTORS.rst

@@ -636,6 +636,7 @@ Contributors
 * Sam Moran
 * Toyibat Adele
 * Umar Farouk Yunusa
+* Chizoba Nweke
 
 
 Translators

+ 3 - 3
docs/extending/adding_reports.md

@@ -6,7 +6,7 @@ They are found in the _Reports_ submenu: by default, the _Locked pages_ report i
 It is possible to create your own custom reports in the Wagtail admin. Two base classes are provided:
 `wagtail.admin.views.reports.ReportView`, which provides basic listing and spreadsheet export functionality, and
 `wagtail.admin.views.reports.PageReportView`, which additionally provides a default set of fields suitable for page listings.
-For this example, we\'ll add a report which shows any pages with unpublished changes.
+For this example, we'll add a report which shows any pages with unpublished changes.
 
 ```python
 # <project>/views.py
@@ -117,7 +117,7 @@ preprocessing, set the preprocessing_function to ``None``.
 
 ## Customising templates
 
-For this example \"pages with unpublished changes\" report, we\'ll add an extra column to the listing template, showing the last publication date for each page. To do this, we\'ll extend two templates: `wagtailadmin/reports/base_page_report.html`, and `wagtailadmin/reports/listing/_list_page_report.html`.
+For this example \"pages with unpublished changes\" report, we'll add an extra column to the listing template, showing the last publication date for each page. To do this, we'll extend two templates: `wagtailadmin/reports/base_page_report.html`, and `wagtailadmin/reports/listing/_list_page_report.html`.
 
 ```html+django
 {# <project>/templates/reports/unpublished_changes_report.html #}
@@ -149,7 +149,7 @@ For this example \"pages with unpublished changes\" report, we\'ll add an extra
 {% endblock %}
 ```
 
-Finally, we\'ll set `UnpublishedChangesReportView.template_name` to this new template: `'reports/unpublished_changes_report.html'`.
+Finally, we'll set `UnpublishedChangesReportView.template_name` to this new template: `'reports/unpublished_changes_report.html'`.
 
 ## Adding a menu item and admin URL