Update by natay on Thu Jan 25 20:38:50 EST 2018 from natay
@@ -189,9 +189,10 @@ class Data(models.Model):
with open(self.file, 'wt') as fp:
pass
- if not bool(self.uid.strip()):
- print(self.uid, self.id, self.name, self.project.name)
- 1/0
+ #print(self.uid, bool(self.uid.strip()) )
+ #if not bool(self.uid.strip()):
+ # print(self.uid, self.id, self.name, self.project.name)
+ # 1/0
super(Data, self).save(*args, **kwargs)
@@ -215,8 +216,8 @@ class Data(models.Model):
def get_data_dir(self):
"The data directory"
- if not bool(self.uid.strip()):
- print(self.uid, self.id, self.name, self.project.get_project_dir())
+ #if not bool(self.uid.strip()):
+ # print(self.uid, self.id, self.name, self.project.get_project_dir())
# 1/0
return join(self.get_project_dir(), f"store-{self.uid}")
