Fixed version check for django-cms integration

Right now, your app fails when django-cms is installed, because the version check tries to compare a str with an int, which throws an exception.

Easy fix.