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

Minor hotfixes for Cordaid import #680

Closed
KasperBrandt opened this issue Jul 17, 2014 · 1 comment
Closed

Minor hotfixes for Cordaid import #680

KasperBrandt opened this issue Jul 17, 2014 · 1 comment
Assignees

Comments

@KasperBrandt
Copy link
Contributor

Two minor hotfixes so that the Cordaid script does not crash:

  • New benchmarks let's the pre_import.py script crash.
  • Baselocation save() crashes the creation of new projects during the project upload.
@KasperBrandt KasperBrandt added this to the 2.3.10 Zambo milestone Jul 17, 2014
@KasperBrandt KasperBrandt self-assigned this Jul 17, 2014
zzgvh added a commit that referenced this issue Jul 17, 2014
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
zzgvh added a commit that referenced this issue Jul 18, 2014
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 issue Jul 18, 2014
@KasperBrandt
Copy link
Contributor Author

Merged in #681

@adriancollier adriancollier modified the milestones: 2.3.9.2 - Yarn Hotfix 2 , 2.3.10 Zambo Jul 22, 2014
@MichaelAkvo MichaelAkvo added this to RSR Dec 8, 2022
@MichaelAkvo MichaelAkvo moved this to Done in RSR Dec 8, 2022
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

No branches or pull requests

2 participants