Changes between Initial Version and Version 1 of Ticket #31802, comment 1


Ignore:
Timestamp:
Jul 19, 2020, 11:13:40 PM (4 years ago)
Author:
Mariusz Felisiak

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31802, comment 1

    initial v1  
    1 Part of the problem here is that `Site.objects.get(pk=some_string)` works because the database uses [SQL implicit type conversion](https://adamj.eu/tech/2020/03/06/sql-implicit-type-conversion/) to cast the string, but we need a consistent value within Python.
     1Part of the problem here is that `Site.objects.get(pk=some_string)` works because the database uses [https://adamj.eu/tech/2020/03/06/sql-implicit-type-conversion/ SQL implicit type conversion] to cast the string, but we need a consistent value within Python.
    22
    33If it's only the site cache that's affected we could make `SITE_CACHE` a subclass of dict that casts keys but that seems like overengineering when a system check would provide enough validation at the boundary.
Back to Top