Created
September 9, 2014 18:29
-
-
Save camsom/54996e6c5905165cc0bf to your computer and use it in GitHub Desktop.
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
base_task = Task.objects.create(institution=None, **bullshit_data) | |
for institution in Institution.objects.all(): | |
new_task = base_task | |
new_task.pk = None | |
new_task.institution = institution | |
new_task.save() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment