Skip to content

Commit

Permalink
Fix ModelAdmin documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemKozai committed Dec 12, 2024
1 parent 0803889 commit 7edfbfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ from .. import resources

@admin.register(models.Book)
class BookAdmin(CeleryImportExportMixin, admin.ModelAdmin):
resource_class = resources.BookResource
resource_classes = [resources.BookResource]
```

Prepare view sets to import/export via API
Expand Down
2 changes: 1 addition & 1 deletion docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Admin models
------------

To perform import/export operations using Celery through Django Admin,
use the ``CeleryImportExportMixin`` in your admin model and set the ``resource_class`` class attribute.
use the ``CeleryImportExportMixin`` in your admin model and set the ``resource_classes`` class attribute.

.. code-block:: python
Expand Down

0 comments on commit 7edfbfc

Please sign in to comment.