Changes between Version 1 and Version 2 of Ticket #31918, comment 1


Ignore:
Timestamp:
Aug 20, 2020, 1:17:31 PM (4 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31918, comment 1

    v1 v2  
    1 Feature request makes sense, PR with tests is welcome. Note that this only works if there's a single field being distinct on and that `distinct('foo', 'bar').in_bulk(field_name='foo')` should not work.
     1Feature request makes sense, PR with tests is welcome.
     2
     3Note that this only works if there's a single field being distinct on; `distinct('foo', 'bar').in_bulk(field_name='foo')` should not work. In other words the logic should be `self.query.distinct_fields == (field_name,)` and not check for containment as suggested above.
Back to Top