فهرست منبع

Fix typo in `__str__` for MySQL search index (#11566)

Jake Howard 1 سال پیش
والد
کامیت
a7f8f7205b
3فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 1 0
      CHANGELOG.txt
  2. 1 1
      docs/releases/6.1.md
  3. 1 1
      wagtail/search/backends/database/mysql/mysql.py

+ 1 - 0
CHANGELOG.txt

@@ -6,6 +6,7 @@ Changelog
 
  * Refine wording of page & collection privacy using password is a shared password and should not be used for secure content (Rohit Sharma, Jake Howard)
  * Add RelatedObjectsColumn to the table UI framework (Matt Westcott)
+ * Fix: Fix typo in `__str__` for MySQL search index (Jake Howard)
  * Docs: Add contributing development documentation on how to work with a fork of Wagtail (Nix Asteri, Dan Braghis)
  * Maintenance: Move RichText HTML whitelist parser to use the faster, built in `html.parser` (Jake Howard)
  * Maintenance: Remove duplicate 'path' in default_exclude_fields_in_copy (Ramchandra Shahi Thakuri)

+ 1 - 1
docs/releases/6.1.md

@@ -19,7 +19,7 @@ depth: 1
 
 ### Bug fixes
 
- * ...
+ * Fix typo in `__str__` for MySQL search index (Jake Howard)
 
 
 ### Documentation

+ 1 - 1
wagtail/search/backends/database/mysql/mysql.py

@@ -279,7 +279,7 @@ class Index:
         item.index_entries.using(self.db_alias).delete()
 
     def __str__(self):
-        return self.nam
+        return self.name
 
 
 class MySQLSearchQueryCompiler(BaseSearchQueryCompiler):