Merge pull request #5266 from MarvinPetzoldt/patch-1

Fixed documentation example
This commit is contained in:
Andrey Rahmatullin 2021-10-12 16:46:51 +05:00 committed by GitHub
commit 8a743ae43a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ Example::
class ProductXmlExporter(XmlItemExporter):
def serialize_field(self, field, name, value):
if field == 'price':
if name == 'price':
return f'$ {str(value)}'
return super().serialize_field(field, name, value)