schemas/base.py
changeset 6622 27402fe6a94a
parent 6427 c8a5ac2d1eaa
child 6724 24bf6f181d0e
child 6853 584679872fd7
--- a/schemas/base.py	Mon Oct 25 15:30:50 2010 +0200
+++ b/schemas/base.py	Mon Oct 25 15:31:29 2010 +0200
@@ -261,7 +261,8 @@
         'update': ('managers',),
         'delete': ('managers',),
         }
-    match_host = String(required=True, unique=True, maxsize=128,
+    __unique_together__ = [('match_host', 'cw_host_config_of')]
+    match_host = String(required=True, maxsize=128,
                         description=_('regexp matching host(s) to which this config applies'))
     config = String(required=True,
                     description=_('Source\'s configuration for a particular host. '