Fixed documentation example

This commit is contained in:
MarvinPetzoldt 2021-10-06 19:08:19 +02:00 committed by GitHub
parent 6c858cec91
commit b1cb007b3b
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)