Skip to content

Commit

Permalink
fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhegarty committed Feb 14, 2024
1 parent 8c1a103 commit 323a28b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions import_export/admin.py
Expand Up @@ -18,7 +18,8 @@
from django.utils.translation import gettext_lazy as _
from django.views.decorators.http import require_POST

from .exceptions import FieldError
from import_export import exceptions

from .forms import ConfirmImportForm, ImportForm, SelectableFieldsExportForm
from .mixins import BaseExportMixin, BaseImportMixin
from .results import RowResult
Expand Down Expand Up @@ -521,7 +522,7 @@ def import_action(self, request, *args, **kwargs):
context["confirm_form"] = self.create_confirm_form(
request, import_form=import_form
)
except FieldError as e:
except exceptions.FieldError as e:
messages.error(request, str(e))

else:
Expand Down

0 comments on commit 323a28b

Please sign in to comment.