Browse Source

Avoid duplicated backups.

pull/636/head
Jairo Llopis 9 years ago
committed by Dave Lasley
parent
commit
54862d2f43
  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