• Anssi Kääriäinen's avatar
    Fixed #20564 -- Generic relations exclude() regression · 31fd64ad
    Anssi Kääriäinen yazdı
    The patch for #19385 caused a regression in certain generic relations
    .exclude() filters if a subquery was needed. The fix contains a
    refactoring to how Query.split_exclude() and Query.trim_start()
    interact.
    
    Thanks to Trac alias nferrari for the report.
    31fd64ad
models.py 4.53 KB