Changes between Initial Version and Version 1 of Ticket #11442, comment 11


Ignore:
Timestamp:
Apr 6, 2012, 4:53:26 PM (13 years ago)
Author:
Jernej Kos

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11442, comment 11

    initial v1  
    1 This also unexpectedly breaks any custom fields that have the `inet` database type. For example, when performing a lookup for a subnet, this HOST() conversion will produce no results, since the prefix length is stripped. And it is very annoying since the only way to work around it seems to be writing a custom manager that specifies a custom `WhereNode` implementation for the query set. This decision of casting every `inet`-thing via HOST() was really unwise and should be fixed.
     1This also unexpectedly breaks any custom fields that have the `inet` database type. For example, when performing a lookup for a subnet, this HOST() conversion will produce no results, since the prefix length is stripped. And it is very annoying since the only way to work around it seems to be writing a custom manager that specifies a custom `WhereNode` implementation for the query set (or an ugly way is to add an extra space into the returned `db_type` so it doesn't match and is not mangled in the backend). This decision of casting every `inet`-thing via HOST() was really unwise and should be fixed.
Back to Top