Changes between Initial Version and Version 1 of Ticket #34863
- Timestamp:
- Sep 22, 2023, 2:54:37 AM (15 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34863 – Description
initial v1 3 3 I have overridden the "RADIANS" function implementation from django in our conftest.py file. Details not that important, but essentially is this: 4 4 5 ``` 6 connection.create_function("RADIANS", 1, lambda x: math.radians(float(x)) if x is not None else None) 7 ``` 5 `connection.create_function("RADIANS", 1, lambda x: math.radians(float(x)) if x is not None else None)` 8 6 9 7 The issue is, there is a lat/lon field in our database, which is stored as a CharField (we can debate that decision later...), so when it gets passed into the `_sqlite_radians` function the test fails as it is invalid input. I think that these functions should be able to take in string values.