fix for django 1.5 URLConf
update to work correctly with SingleObjectMixin and self.object on Django 1.5
fix version function for Django 1.5