@@ -30,7 +30,7 @@ class Book(models.Model):
def button_check_isbn(self):
"""检查ISBN的有效性"""
- # 遍历当前记录集中的每一条记录
+ # 遍历当前记录集self中的每一条记录
for book in self:
if not book.isbn:
raise ValidationError('Please provide an ISBN for %s' % book.name)