Refactor resources module#1695
Refactor resources module#1695matthewhegarty merged 6 commits intodjango-import-export:release-4from
Conversation
rpsands
left a comment
There was a problem hiding this comment.
I am fine with this but would throw out using a subfolder called resources and placing the files in there as an option that might be easier to understand.
|
Hi Ryan Thanks for reviewing, much appreciated. I did think about using a subfolder. SQLAlchemy has a subfolder called It does seem that since this code is helper code for We could go with To keep things simple, I wonder if it is easier just to keep them in separate top level modules as in this PR. What do you think? |
Yeah I was thinking the django models folder style route where you make a resources folder, then import everything into the init.py in that folder would make it so you didn't have to change anything - everything still imports from resources. But there're definitely issues with that approach :) |
|
Are you ok for me to merge as it is? |
Yup, always something we can tackle later if desired and this is an improvement. |
Problem
resources.pyhas grown to be a large module. I have moved 'declarative' code and andResourceOptionsinto separate modules.There are no functional changes in this PR.
Acceptance Criteria