Skip to content
Snippets Groups Projects
Commit 0109abd7 authored by Jonathan Seguin's avatar Jonathan Seguin
Browse files

Fix bug in datafile update

parent 5a957c91
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,7 @@ class DataFile(models.Model):
super().delete(using, keep_parents)
def save(self, *args, **kwargs):
if self.file:
if self.file and not self.filename:
self.filename = self.file.name
super().save(*args, **kwargs)
......
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