def view_method(request):
    if hasattr(request, 'flash'):
        request.flash.update()
        return True
    return False
Function that simulates a Django view.
dataset/ETHPy150Open danielfm/django-flash/src/djangoflash/tests/decorators.py/view_method