def get_or_none(model, **kwargs):
    """
    Gets the model you specify or returns none if it doesn't exist.
    """
    try:
        return model.objects.get(**kwargs)
    except model.DoesNotExist:
        return None