def get_object_or_this(model, this=None, *args, **kwargs):

    return get_object_or_None(model, *args, **kwargs) or this
Uses get() to return an object or the value of <this> argument
dataset/ETHPy150Open skorokithakis/django-annoying/annoying/functions.py/get_object_or_this