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