Early python doesn't like comparing django field to int with "is"