create a new shortcut to get object or return None value

I use django in my work and I love it.

And today I do my first contribution for django. It's very simple but enough useful.

I use this function in a file in my project, mainly when I work with forms. But I think that will be best be in shortcuts file django.

Thanks