svgui/pyjs/jsonrpc/django/jsonrpc.py
changeset 1878 fb73a6b6622d
parent 1869 49cdd843c006
child 1881 091005ec69c4
--- a/svgui/pyjs/jsonrpc/django/jsonrpc.py	Thu Oct 19 10:57:35 2017 +0300
+++ b/svgui/pyjs/jsonrpc/django/jsonrpc.py	Thu Oct 19 11:03:03 2017 +0300
@@ -78,20 +78,20 @@
 
 # contains the list of arguments in each field
 field_names = {
- 'CharField': ['max_length', 'min_length'],
- 'IntegerField': ['max_value', 'min_value'],
- 'FloatField': ['max_value', 'min_value'],
- 'DecimalField': ['max_value', 'min_value', 'max_digits', 'decimal_places'],
- 'DateField': ['input_formats'],
- 'DateTimeField': ['input_formats'],
- 'TimeField': ['input_formats'],
- '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'],
- 'FilePathField': ['path', 'match', 'recursive', 'choices'],
- 'IPAddressField': ['max_length', 'min_length'],
- }
+    'CharField': ['max_length', 'min_length'],
+    'IntegerField': ['max_value', 'min_value'],
+    'FloatField': ['max_value', 'min_value'],
+    'DecimalField': ['max_value', 'min_value', 'max_digits', 'decimal_places'],
+    'DateField': ['input_formats'],
+    'DateTimeField': ['input_formats'],
+    'TimeField': ['input_formats'],
+    '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'],
+    'FilePathField': ['path', 'match', 'recursive', 'choices'],
+    'IPAddressField': ['max_length', 'min_length'],
+}
 
 
 def describe_field_errors(field):