Skip to content

Commit

Permalink
updated FAQ to include workaround for RelatedObjectDoesNotExist exc…
Browse files Browse the repository at this point in the history
…eption (#1562)

* updated FAQ

* added security.md
  • Loading branch information
matthewhegarty committed Mar 15, 2023
1 parent 54bc716 commit 2d2b488
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,11 @@ See :ref:`Celery:Using celery to perform imports` and :ref:`bulk_import:Bulk imp
How to use field other than `id` in Foreign Key lookup
------------------------------------------------------

See :ref:`advanced_usage:Foreign key relations`.
See :ref:`advanced_usage:Foreign key relations`.

``RelatedObjectDoesNotExist`` exception during import
-----------------------------------------------------

This can occur if a model defines a ``__str__()`` method which references a primary key or
foreign key relation, and which is ``None`` during import. There is a workaround to deal
with this issue. Refer to `this comment <https://github.com/django-import-export/django-import-export/issues/1556#issuecomment-1466980421>`_.
7 changes: 7 additions & 0 deletions security.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Security Policy

## Reporting a Vulnerability

**Please report security issues by emailing djangoimportexport@gmail.com**.

The project maintainers will then work with you to resolve any issues where required, prior to any public disclosure.

0 comments on commit 2d2b488

Please sign in to comment.