Skip to content
Snippets Groups Projects
Commit 07be7210 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[experiments][admin] Fixed editing

parent 753c077e
No related branches found
No related tags found
1 merge request!2551.4.x
...@@ -112,7 +112,10 @@ class ExperimentModelForm(forms.ModelForm): ...@@ -112,7 +112,10 @@ class ExperimentModelForm(forms.ModelForm):
if 'declaration_file' in self.data and \ if 'declaration_file' in self.data and \
isinstance(self.data['declaration_file'], six.string_types): isinstance(self.data['declaration_file'], six.string_types):
self.data['declaration_file'] = ContentFile(self.data['declaration_file'], name='unsaved') mutable_data = self.data.copy()
mutable_data['declaration_file'] = ContentFile(self.data['declaration_file'], name='unsaved')
self.data = mutable_data
class BlockInline(admin.TabularInline): class BlockInline(admin.TabularInline):
......
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