Defined view mixin properties required for "get_object()"

Calling get_object() when checking view permissions via the PermissionRequiredMixin was missing a few properties that getting the object requires, which are normally set in the base View dispatch method. As that method doesn't get called unless the permission check passes, we need to set them ourselves first