Skip to content
Snippets Groups Projects
Commit 8952fa67 authored by jan.bednarik's avatar jan.bednarik
Browse files

redmine: Fix command

parent 3612dd9a
Branches
No related tags found
2 merge requests!527redmine: Fix command,!526redmine: Fix command
Pipeline #8260 passed
......@@ -11,12 +11,10 @@ class Command(BaseCommand):
`redmine_program_block` - ten má IntegerBlock `redmine_issue`. Podle něj
pak stahujeme data z Redmine.
"""
updated_models = DistrictProgramPage
self.stdout.write("Updating Redmine issues...")
for model in updated_models:
for page in model.objects.all():
fill_data_from_redmine_for_page(page)
page.save()
for page in DistrictProgramPage.objects.all():
fill_data_from_redmine_for_page(page)
page.save()
self.stdout.write("\nUpdating Redmine issues finished")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment