Skip to content

Commit c748e4d

Browse files
committed
Admin clone/transform tool: add deep links
1 parent e4824ee commit c748e4d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

django/applications/catmaid/control/annotationadmin.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ class SourceTypeForm(forms.Form):
6464
help_text="Should volumes/meshes be imported?")
6565
import_reviews = forms.BooleanField(initial=True, required=False,
6666
help_text="Should reviews be imported?")
67+
import_deeplinks = forms.BooleanField(initial=True, required=False,
68+
help_text="Should deep-links be imported?")
6769

6870

6971
class FileBasedImportForm(forms.Form):
@@ -171,8 +173,8 @@ def async_project_copy_job(import_task_id) -> str:
171173
'allowed_tags': None,
172174
'export_users': True,
173175
'export_volumes': scd['import_volumes'],
174-
'export_public_deep_links': False, # FIXME
175-
'export_exportable_deep_links': False, # FIXME,
176+
'export_public_deep_links': scd['import_deeplinks'],
177+
'export_exportable_deep_links': scd['import_deeplinks'],
176178
'export_reviews': scd['import_reviews'],
177179
'required_annotations': [],
178180
'excluded_annotations': [],
@@ -382,6 +384,7 @@ def done(self, form_list, **kwargs) -> HttpResponse:
382384
'import_tags': scd['import_tags'],
383385
'import_volumes': scd['import_volumes'],
384386
'import_reviews': scd['import_reviews'],
387+
'import_deeplinks': scd['import_deeplinks'],
385388
'apply_transform': apply_transform,
386389
'transform': transform,
387390
'reference_stack_id': reference_stack.id,

0 commit comments

Comments
 (0)