From 4936e6aa56ebf3da932fb3e7d256c2e8321480db Mon Sep 17 00:00:00 2001 From: Artem Kozai Date: Thu, 12 Dec 2024 17:55:34 +0700 Subject: [PATCH] Fix ModelAdmin documentation --- README.md | 2 +- docs/getting_started.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1420272..ca0c18d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docs/getting_started.rst b/docs/getting_started.rst index c1d2de2..38a1931 100644 --- a/docs/getting_started.rst +++ b/docs/getting_started.rst @@ -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