-
Notifications
You must be signed in to change notification settings - Fork 1
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
work adding import functionality using django-import-export #800
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
14b480d
person import work
quadrismegistus 726ee48
first attribute working
quadrismegistus 2b17de0
both working
quadrismegistus 5e897f7
condensing code
quadrismegistus 20d7e08
minor
quadrismegistus cc4b970
adding countryadmin back
quadrismegistus e38652f
turning off index signals while importing
quadrismegistus 66bd9c6
working now with shared set of cols
quadrismegistus d6b0209
quick fixes
quadrismegistus 099c027
should be working now
quadrismegistus a05b9a4
new settings; export cols separated
quadrismegistus feec6bd
adding index logic
quadrismegistus 9e810e8
indexing
quadrismegistus c6e86c1
update
quadrismegistus c5b45a3
all working now
quadrismegistus ae06676
tests for import and export at requests level
quadrismegistus 10ee53c
minor fix
quadrismegistus 239d979
remove redundant code
quadrismegistus 305ae29
reformatting
quadrismegistus 26e767d
reformatting
quadrismegistus 75e0e4f
cleanup
quadrismegistus bda61a6
added unit test
quadrismegistus 1c27716
ensuring indexing disabled after person admin testing
quadrismegistus 3dcba17
ensuring indexing disabled after person admin testing 2
quadrismegistus c2d7df8
Cleanup viaf person save test method for new skip lookup config
rlskoeser b2dd870
cleanup and making import model resource extensible for books
quadrismegistus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ django-debug-toolbar | |
sphinx | ||
wheel | ||
pre-commit | ||
wagtail-factories | ||
wagtail-factories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right now export only exports the columns that are imported. We can change this (though there's annoyingly not a simple way to do this it appears in dj-imp-exp) or just document that for now. For instance if we wanted to annotate profession we could add that to both and write a little
profession = Field(...ForeignKey(..))
in the code aboveThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like an ok limitation since that wasn't part of the scope you were working on
(seems like a weird limitation on their part, but something we can live with)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got this working in latest, we export most everything we display in the Person table, and import only what we need