Skip to content

Commit

Permalink
Merge pull request #735 from gelbander/doc-declaring-fields
Browse files Browse the repository at this point in the history
Updated documentation regardign declaring fields.
  • Loading branch information
bmihelac committed May 17, 2018
2 parents 68a3e71 + 9b69dbf commit 2502584
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Exporting data

Now that we have defined a :class:`~import_export.resources.ModelResource` class,
we can export books::

>>> from app.admin import BookResource
>>> dataset = BookResource().export()
>>> print dataset.csv
Expand Down Expand Up @@ -148,7 +148,7 @@ options::
from import_export.fields import Field

class BookResource(resources.ModelResource):
published = Field(column_name='published_date')
published = Field(attribute='published', column_name='published_date')

class Meta:
model = Book
Expand Down Expand Up @@ -286,7 +286,7 @@ To hook in the import export workflow, you can connect to ``post_import``, ``pos

@receiver(post_export, dispatch_uid='balabala...')
def _post_export(model, **kwargs):
# model is the actual model instance which after export
# model is the actual model instance which after export
pass


Expand Down

0 comments on commit 2502584

Please sign in to comment.