Browse Source

Avoid duplicated backups.

pull/614/head
Jairo Llopis 9 years ago
committed by Dave Lasley
parent
commit
c63a7d5fa4
  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"
_sql_constraints = [
("name_unique", "UNIQUE(name)", "Cannot duplicate a configuration."),
("days_to_keep_positive", "CHECK(days_to_keep >= 0)",
"I cannot remove backups from the future. Ask Doc for that."),
]

Loading…
Cancel
Save