Changes between Initial Version and Version 1 of Ticket #30915


Ignore:
Timestamp:
Oct 27, 2019, 5:43:27 AM (5 years ago)
Author:
Bartłomiej Biernacki
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30915 – Description

    initial v1  
    55While this serves the purpose it might be more readable if we will have a dedicated "implication" function.
    66
    7 I propose to use binary operator `>>` for that purpose, so in Django `Q` we could write a `Q(field='x') >> Q(field_b__gt=0)` which in mine opinion looks much more readable and can encourage people to use more database level constratins in their projects.
     7I propose to use binary operator `>>` for that purpose, so in Django `Q` we could write a `Q(field='x') >> Q(field_b__gt=0)` which in mine opinion looks much more readable and can encourage people to use more database level constratins in their projects
     8
     9I have provided a patch with this functionality: https://github.com/django/django/pull/11978
     10If this will be accepted I will add documentation to it.
Back to Top