Just a joke, or something serious?
The truth is that many people actually believe that. They believe that the only true believers in God are Christians, and that the only true Christians happen to be conservative Republicans. If they are right, then you can't go to heaven if you are a Democrat. Isn't that obvious?