title: How to return from another function in Django View function
body: <p>I have a function in views.py</p>
  
  <pre><code>def login(request):
     actor = LoginActor(request)
     actor.authenticated_user() # Cannot use return here, this is problematic, we need to redirect here without using a return statement
  
     ctx = actor.get()
  
     if request.method == 'POST':
        ctx = actor.post()
  
        return render(request, 'user/forms/auth.jinja', ctx)
     return render(request, 'user/login.jinja', ctx)
  </code></pre>
  
  <p>and there is a redirect in <code>authenticated_user()</code> function which is defined as:</p>
  
  <pre><code>def authenticated_user(self):
      if self.request.user and self.request.user.is_authenticated:
          return redirect('home')
  </code></pre>
  
  <p>How do i return from the initial view without calling a <code>return</code>, basically i want to return the callee function where there is a <code>return</code> in called function
  I am using Django 2.1 with Python 3.7</p>