-
-
Notifications
You must be signed in to change notification settings - Fork 782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multi column foreign key #188
Comments
Idea is to lookup a FK using more than one field for example if I am loading data in Model A with a foreign key to Model B and I want to identify model B using multiple fields B.fielda and B.fieldb. Am I missing how to do this? |
It looks to me this is something very specialised, you can always do it with a custom format. |
I have a similar requirement as well. Until recently, I have been using my own CSV import code. However, I want to move to a library that is better supported and used by others. I came across django-import-export and I see that it does not support looking up ForeignKey objects with multiple lookup fields. A classic example would be looking up a person by |
It could have been solved relatively easily if there was a way to access other row values from a Widget. Is there a feature request for this? I can't find it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
It should be pretty straightforward to have multiple column based Foreign Key lookup. I can easily make the change and submit a pull request. Any particular way we should take the multiple columns in the Foreign Key Widget in the Field in the Resource definition?
The text was updated successfully, but these errors were encountered: