Prevent unnecessary queries in the datagrid for None values.

Review Request #7632 — Created Sept. 17, 2015 and submitted

Information

Djblets
master

Reviewers

The query optimizer in the datagrid code wasn't checking if associated
IDs were None, and still tried to look them up from the database. This
was silly and pointless. It no longer tries to do such things.

Saw this appear in a list of queries before-hand. Fixed it, and saw that
the queries were no longer appearing.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        djblets/datagrid/grids.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        djblets/datagrid/grids.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (ccbc124)
Loading...