ソースを参照

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