docs: use new print syntax in getting started guide (#786)

This commit is contained in:
nikolas 2018-06-01 03:45:39 -04:00 committed by Bojan Mihelac
parent edc18e7653
commit 2d662fc2fe
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ we can export books::
>>> from app.admin import BookResource
>>> dataset = BookResource().export()
>>> print dataset.csv
>>> print(dataset.csv)
id,name,author,author_email,imported,published,price,categories
2,Some book,1,,0,2012-12-05,8.85,1
@ -229,7 +229,7 @@ Let's import some data!
>>> book_resource = resources.modelresource_factory(model=Book)()
>>> dataset = tablib.Dataset(['', 'New book'], headers=['id', 'name'])
>>> result = book_resource.import_data(dataset, dry_run=True)
>>> print result.has_errors()
>>> print(result.has_errors())
False
>>> result = book_resource.import_data(dataset, dry_run=False)