Changes between Initial Version and Version 1 of Ticket #28992, comment 6


Ignore:
Timestamp:
Aug 17, 2019, 11:45:53 AM (5 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28992, comment 6

    initial v1  
    1 I know some lookup raise `ValueError` or `TypeError` when an invalid value is provided but none raise `ValidationError` AFAIK. IMO this is an issue similar to #29915 where a specialized `__contains` lookup must be implemented for `GenericIPAddressField`.
     1I know some lookup raise `ValueError` or `TypeError` when an invalid value is provided but none raise `ValidationError` AFAIK.
     2
     3IMO this is an issue similar to #29915 where a specialized `__contains` lookup must be implemented for `GenericIPAddressField`. Something similar must be in place to allow `integer_field__contains=42` to work. In this particular case it could `raise EmptyResultSet` because it knows it cannot match any rows, just like `__in` raises it when passed an empty sequence.
Back to Top