Skip to content
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

[#680] Hacky solutions for Cordaid script #681

Merged
merged 3 commits into from
Jul 18, 2014

Conversation

KasperBrandt
Copy link
Contributor

@zzgvh Can you check? Not really the best solutions with try and except, but this makes that we can run the Cordaid scripts on UAT..

KasperBrandt and others added 3 commits July 17, 2014 10:07
Replace create_cordaid_business_units() with find_cordaid_business_units()
turning the process inside-out so that we loop over the data and lookup
the business units instead of the other way around.

Change create_cats_and_benches() so it logs to file properly
When updating Cordaid projects the IATIProjectResource.obj_update
method deletes all related objects so they can be re-created. This leads
to Project.primary_location pointing to a deleted object so we have to
set it to None since QuerySet.delete() does not call Model.delete() for
the individual objects. (For reasons not understood a solution iterating
over the ProjectLocation objects and calling delete() didn't work.)
KasperBrandt added a commit that referenced this pull request Jul 18, 2014
@KasperBrandt KasperBrandt merged commit 0cfa5f5 into release/candidate Jul 18, 2014
@KasperBrandt KasperBrandt deleted the hotfix/680_cordaid_hotfixes branch July 25, 2014 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants