(value)
| 119 | |
| 120 | def get_model_default_params(model): |
| 121 | def convert_to_int(value): |
| 122 | if isinstance(value, str): |
| 123 | try: |
| 124 | return int(value) |
| 125 | except ValueError: |
| 126 | return value |
| 127 | return value |
| 128 | |
| 129 | return { |
| 130 | p.get('field'): convert_to_int(p.get('default_value')) |
no outgoing calls
no test coverage detected