Skip to content
Snippets Groups Projects
Commit 0caaa36d authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Clean up commented out code

Remove commented out code blocks for file handling in
superevents/forms.py.
parent 4569353d
No related branches found
No related tags found
No related merge requests found
......@@ -38,23 +38,3 @@ class LogCreateForm(forms.ModelForm):
create_log_args = self.cleaned_data.copy()
create_log_args['issue_alert'] = True
return create_log(**create_log_args)
#return create_log(**self.cleaned_data, issue_alert=True)
#data_file = self.cleaned_data.pop('data_file', None)
## Inherited save from ModelForm
#obj = super(LogCreateForm, self).save(commit)
## Do other stuff with data file
#if data_file:
# filepath = os.path.join(obj.superevent.datadir,
# self.cleaned_data['filename'])
# fdest = VersionedFile(filepath, 'w')
# for chunk in data_file.chunks():
# fdest.write(chunk)
# fdest.close()
# obj.file_version = fdest.version
# if commit:
# obj.save()
#return obj
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