added comment to validate value
This commit is contained in:
parent
ba11f5af47
commit
7d43e2f3d3
1 changed files with 2 additions and 0 deletions
|
|
@ -50,6 +50,8 @@ class DocListController(object):
|
|||
return self._meta
|
||||
|
||||
def validate_value(self, fieldname, condition, val2, doc=None):
|
||||
"""check that value of fieldname should be 'condition' val2
|
||||
else throw exception"""
|
||||
if not doc:
|
||||
doc = self.doc
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue