delete useless print functions
This commit is contained in:
@@ -133,8 +133,6 @@ class Document(models.Model):
|
|||||||
str(self.date) + "-" + self.task.title + "-" + slugify(self.title)
|
str(self.date) + "-" + self.task.title + "-" + slugify(self.title)
|
||||||
)
|
)
|
||||||
|
|
||||||
print("clean")
|
|
||||||
|
|
||||||
if len(pad_name) > 50:
|
if len(pad_name) > 50:
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
_(
|
_(
|
||||||
@@ -148,8 +146,6 @@ class Document(models.Model):
|
|||||||
slugify(str(self.date) + "-" + self.task.title + "-" + slugify(self.title))
|
slugify(str(self.date) + "-" + self.task.title + "-" + slugify(self.title))
|
||||||
)
|
)
|
||||||
|
|
||||||
print("save")
|
|
||||||
|
|
||||||
super().save(*args, **kwargs)
|
super().save(*args, **kwargs)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user