diff -r 7e61baa047f0 -r a39c2918c015 svgui/pyjs/jsonrpc/django/jsonrpc.py --- a/svgui/pyjs/jsonrpc/django/jsonrpc.py Mon Aug 14 23:27:15 2017 +0300 +++ b/svgui/pyjs/jsonrpc/django/jsonrpc.py Mon Aug 14 23:34:22 2017 +0300 @@ -86,7 +86,7 @@ 'DateField': ['input_formats'], 'DateTimeField': ['input_formats'], 'TimeField': ['input_formats'], - 'RegexField': ['max_length', 'min_length'], # sadly we can't get the expr + 'RegexField': ['max_length', 'min_length'], # sadly we can't get the expr 'EmailField': ['max_length', 'min_length'], 'URLField': ['max_length', 'min_length', 'verify_exists', 'user_agent'], 'ChoiceField': ['choices'], @@ -154,7 +154,7 @@ f = self.formcls(params) - if command is None: # just validate + if command is None: # just validate if not f.is_valid(): return {'success':False, 'errors': builderrors(f)} return {'success':True} @@ -170,7 +170,7 @@ elif command.has_key('save'): if not f.is_valid(): return {'success':False, 'errors': builderrors(f)} - instance = f.save() # XXX: if you want more, over-ride save. + instance = f.save() # XXX: if you want more, over-ride save. return {'success': True, 'instance': json_convert(instance) } elif command.has_key('html'):