Work around peewee issue when performing a comparison against None, fixes #65
Merge pull request #66 from IanDBird/peewee-fix

Work around peewee issue when performing a comparison against None, fixes #65