Browse Source

Avoid duplicated backups.

pull/203/head
Jairo Llopis 9 years ago
parent
commit
978ff474f5
  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