When I ask the model manager to get an object, it raises DoesNotExist when there is no matching object.
DoesNotExist
go = Content.objects.get(name=\"baby\")
If you want a simple one-line solution that doesn't involve exception handling, conditional statements or a requirement of Django 1.6+, do this instead:
x = next(iter(SomeModel.objects.filter(foo='bar')), None)