Lines Matching defs:Constraint
4 """Raised when an error occurs applying a Constraint."""
9 # maps selector name to (selector, constraint)
37 def add_selector(self, selector, constraint):
40 self._selectors[selector.name] = (selector, constraint)
49 return tuple(selector for selector, constraint
61 _, constraint = self._selectors[selector_name]
63 return constraint.apply_constraint(queryset, value, comparison_type,
87 class Constraint(object):
92 class _FieldConstraint(Constraint):
126 class _RelatedExistenceConstraint(Constraint):
156 class _KeyvalConstraint(Constraint):