TireSwingSoftware/openassign-server — Issue #26: Utils.merge_queries() fails for None value
Author: mhrivnak
Created: 2011-10-18 20:25:24+00:00
State: open

When merging on field "x", if an item in the original query has x==None, the following error occurs:

File "/home/mhrivnak/git/openassign-server/pr_services/utils/__init__.py", line 101, in merge_queries
for key in item.get(glue_field_name, []):
TypeError: 'NoneType' object is not iterable

This happens specifically when field "x" is a ForeignKey.