Commit d8ec470b authored by Michal Čihař's avatar Michal Čihař

Missing params

parent 9bf568c2
......@@ -57,7 +57,7 @@ class ProjectAdmin(admin.ModelAdmin):
Commits pending changes for selected resources.
'''
for project in queryset:
project.commit_pending()
project.commit_pending(request)
self.message_user(
request,
"Flushed changes in %d git repos." % queryset.count()
......@@ -102,7 +102,7 @@ class SubProjectAdmin(admin.ModelAdmin):
Commits pending changes for selected resources.
'''
for project in queryset:
project.commit_pending()
project.commit_pending(request)
self.message_user(
request,
"Flushed changes in %d git repos." % queryset.count()
......
......@@ -29,4 +29,4 @@ class Command(WeblateCommand):
Commits pending translations in given projects.
'''
for subproject in self.get_subprojects(*args, **options):
subproject.commit_pending()
subproject.commit_pending(None)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment