Replies: 1 comment
-
Hi - I don't think you'll get any response here - your question is a bit too broad, and I doubt anyone will have the time to understand your code. Best to post on stackoverflow with a specific issue. More info here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using django-import-export to export data from xlsx to the database. When I import for a model without foreign keys or with only one foreign key, the import works very well. But when I have two foreign keys, I encounter errors. I drew a lot of inspiration from your importation code (.py and .html, ...). When I initiate the import, I get a summary without errors, but when I confirm the import, I receive an error saying that it can't find a match for one of the foreign keys.
example resources.py
example views.py
import.html
Beta Was this translation helpful? Give feedback.
All reactions