Skip to content

Commit

Permalink
Merge pull request #456 from dchiller/import_data_chant_argument
Browse files Browse the repository at this point in the history
Fixes argument in admin action: import chant data
  • Loading branch information
napulen authored Jun 3, 2022
2 parents 6aab972 + 2dbaaee commit 7e2b365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/public/cantusdata/admin/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ManuscriptAdmin(admin.ModelAdmin):

def load_chants(self, request, queryset):
for manuscript in queryset:
call_command("import_data", "chants", manuscript_id=manuscript.pk)
call_command("import_data", "chants", f"--manuscript-id={manuscript.pk}")
self.message_user(request, "Loaded chants for manuscript")

load_chants.short_description = "Imports the chants associated \
Expand Down

0 comments on commit 7e2b365

Please sign in to comment.