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

redmine: Fix command

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