Browse Source

Avoid duplicated backups.

pull/1158/head
Jairo Llopis 9 years ago
committed by Andrea
parent
commit
fda49604e8
  1. 1
      auto_backup/models/db_backup.py

1
auto_backup/models/db_backup.py

@ -26,6 +26,7 @@ class DbBackup(models.Model):
_inherit = "mail.thread" _inherit = "mail.thread"
_sql_constraints = [ _sql_constraints = [
("name_unique", "UNIQUE(name)", "Cannot duplicate a configuration."),
("days_to_keep_positive", "CHECK(days_to_keep >= 0)", ("days_to_keep_positive", "CHECK(days_to_keep >= 0)",
"I cannot remove backups from the future. Ask Doc for that."), "I cannot remove backups from the future. Ask Doc for that."),
] ]

Loading…
Cancel
Save