Changes between Initial Version and Version 1 of Ticket #34863


Ignore:
Timestamp:
Sep 22, 2023, 2:54:37 AM (14 months ago)
Author:
Zachary Croker
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34863 – Description

    initial v1  
    33I have overridden the "RADIANS" function implementation from django in our conftest.py file. Details not that important, but essentially is this:
    44
    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)`
    86
    97The 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.
Back to Top