diff --git a/apps/sources/views.py b/apps/sources/views.py index f116dfad64..6f574fe75f 100644 --- a/apps/sources/views.py +++ b/apps/sources/views.py @@ -206,7 +206,7 @@ def upload_interactive(request, source_type=None, source_id=None, document_pk=No expand = False else: if staging_folder.uncompress == SOURCE_UNCOMPRESS_CHOICE_ASK: - expand = form.cleaned_dataget('expand') + expand = form.cleaned_data.get('expand') else: if staging_folder.uncompress == SOURCE_UNCOMPRESS_CHOICE_Y: expand = True